mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-07-14 19:55:16 +02:00
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:
parent
6341772866
commit
3e4c2fb608
1 changed files with 0 additions and 1 deletions
|
@ -115,7 +115,6 @@ Shader::Shader()
|
|||
|
||||
Shader::~Shader()
|
||||
{
|
||||
gl.UseProgram(0);
|
||||
gl.DeleteProgram(program);
|
||||
gl.DeleteShader(vertShader);
|
||||
gl.DeleteShader(fragShader);
|
||||
|
|
Loading…
Add table
Reference in a new issue