Do not call gl.UseProgram(0) in shader destructor (#26)

This can erroneously affect the GL state if destruction occurs after another GL program is set and before that operation finishes
This commit is contained in:
Eblo 2023-10-08 22:33:31 -04:00 committed by GitHub
parent 6341772866
commit 3e4c2fb608
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -115,7 +115,6 @@ Shader::Shader()
Shader::~Shader()
{
gl.UseProgram(0);
gl.DeleteProgram(program);
gl.DeleteShader(vertShader);
gl.DeleteShader(fragShader);