Skip to content

TypeError: Failed to execute 'shaderSource' on 'WebGLRenderingContext': parameter 1 is not of type 'WebGLShader'. #392

Description

@humphd

I'm using jsmpeg in React, and sometimes I get this Failed to execute 'shaderSource' error (usually on tear-down or some re-render), I suspect due to React destroying the canvas context when jsmpeg doesn't expect it.

I notice that mapbox-gl-js had a similar issue, and added checks on the context being lost. Not a deal breaker, but probably something that someone with more knowledge of WebGL could fix.

Regardless, this thing is absolutely amazing. Thanks for sharing, it works so well!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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