Jump to content

WebGL Invalid Operation Error (Warning)


Recommended Posts



I was wondering if anyone could help with a benign error I'm seeing in a game my team and I are currently working on:


Warning Message:

WebGL: INVALID_OPERATION: uniformMatrix3fv: location is not from current program



We're using a lot of custom shaders and filters, and this seems to be linked to our usage of a custom shader.


How safe is it to subclass Shader to make a custom shader, and then apply such an object to an instance of PIXI.Sprite on the shader property?


I may have not supplied enough information, so please ask any questions. You can see the error here:



Thank you!



Link to comment
Share on other sites

You should try to subclass the AbstractFilter class for doing custom shaders, the Shader class requires a bit more work to get working. The error you are getting is pixi trying to set a uniform value that actually doesn't exist in the program. This is likely due to you specifying a uniform that isn't in the program, or one of the built-in uniforms not existing in the program that it is expecting.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...