VictorGordan / opengl-tutorials

Tutorials from the following playlist: https://www.youtube.com/playlist?list=PLPaoO-vpZnumdcb4tZc4x5Q-v7CkrQ6M-

Home Page:https://www.youtube.com/channel/UC8WizezjQVClpWfdKMwtcmw

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shaders are not deleted after calling glDeleteShader.

SandNoodle opened this issue · comments

Due to OpenGL specification glDetachShader has to be called at some point before or after glDeleteShader.

If shader has already been flagged for deletion by a call to glDeleteShader and it is not attached to any other program object, it will be deleted after it has been detached.

As far as I've checked, this bug is included in every example containing shader code.