Added screen shaders
This commit is contained in:
parent
b8ccf3dc3a
commit
7b020ffa84
6 changed files with 158 additions and 39 deletions
|
|
@ -14,5 +14,11 @@ GLint CShader::getUniformLocation(const std::string& unif) {
|
|||
|
||||
CShader::~CShader() {
|
||||
// destroy shader
|
||||
destroy();
|
||||
|
||||
program = 0;
|
||||
}
|
||||
|
||||
void CShader::destroy() {
|
||||
glDeleteProgram(program);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue