Skip to content

WebGL State Diagram: minor shader state inconsistency. #257

@sciecode

Description

@sciecode

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?

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions