-
Notifications
You must be signed in to change notification settings - Fork 690
Closed
Description
Given how the tool is made to showcase the correct WebGL state, wouldn't it be beneficial to include calls to gl.detachShader as well?
webgl-fundamentals/webgl/lessons/resources/webgl-state-diagram.html
Lines 302 to 303 in 7240c2b
| gl.deleteShader(vertexShader); | |
| gl.deleteShader(fragmentShader); |
A lot of people don't know that the shaders are only released after they are both marked for deletion and detached from every program. This is usually not a big problem, because the shader will eventually get detached once the program is deleted, but only then the shader will be actually released.
A small comment description could go a long way to bringing more attention to this fact, and the shader panel going away, after deleting, would be correct.
Metadata
Metadata
Assignees
Labels
No labels