Jump to content

AttachShader pixi.js error


Recommended Posts

Sometines I have TypeError: Failed to execute 'attachShader' on 'WebGLRenderingContext': parameter 2 is not of type 'WebGLShader' in pixi.js: 3936

(Ver 4.0.0). This appears few times in a week and I have no idea when and why. Same things can 100 times work and once not. Why this error appears at all and how can I fix or prevent this?

Link to comment
Share on other sites

I dont know how many renderers react-pixi is creating. I need that info, please. How many canvases with webgl are on screen?

In SpriteRenderer constructor there's "TICK = 0" line, you can remove it and see if that helps.

Another thing: do you use Graphics with rectangles that are parallel to axises?

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...