summaryrefslogtreecommitdiff
path: root/src/render/Shader.cpp
blob: 7b22c83aff6cb9a964b1b0d09223e1157ac44d23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "Shader.hpp"

SShader::~SShader() {
    destroy();
}

void SShader::destroy() {
    if (program == 0)
        return;

    glDeleteProgram(program);

    program = 0;
}