Added screen shaders

This commit is contained in:
vaxerski
2022-12-01 13:36:07 +00:00
parent b8ccf3dc3a
commit 7b020ffa84
6 changed files with 158 additions and 39 deletions

View File

@@ -14,5 +14,11 @@ GLint CShader::getUniformLocation(const std::string& unif) {
CShader::~CShader() {
// destroy shader
destroy();
program = 0;
}
void CShader::destroy() {
glDeleteProgram(program);
}