simplify a bit of code

This commit is contained in:
vaxerski
2022-08-26 18:02:07 +02:00
parent bf00bf7963
commit dbd774fedb
2 changed files with 2 additions and 5 deletions

View File

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