Skip to content

getProgramParameter(program, parallelShaderCompileExt.COMPLETION_STATUS_KHR) fails incorrectly on a restored WebGLContext #28

@WesselKroos

Description

@WesselKroos

The first time a WebGLContext is created this goes correctly. But when a lost WebGLContext was restored by Chrome and I'm getting the COMPLETION_STATUS_KHR program parameter the following error message is thrown:
error in getProgramParameter(WebGLProgram("*UNTAGGED:Program4*"), COMPLETION_STATUS_KHR): INVALID_ENUM

The extension is enabled because getExtension('KHR_parallel_shader_compile').COMPLETION_STATUS_KHR is 37297.

My code:

const parallelShaderCompileExt = gl.getExtension('KHR_parallel_shader_compile');
if(parallelShaderCompileExt) {
  let completed = gl.getProgramParameter(program, parallelShaderCompileExt.COMPLETION_STATUS_KHR);
  // ...
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions