You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this.baseTexture._glTextures[gl.id] appears to be an empty object, and when that happens the bind fails and the texImage2D starts throwing console errors like they are going out of fashion.
This is easy to replicate. Just open Pixi example 11 and stick this on line 37:
renderTexture.resize(400, 300);
The text was updated successfully, but these errors were encountered:
…ses the textureBuffer to resize and has a new optional 'updateBase' parameter which will set the new dimensions on the baseTexture as well. Fixespixijs#746.
Wow this one took me a good while to track down, but basically RenderTexture.resize is broken in WebGL.
The offending line is https://github.com/GoodBoyDigital/pixi.js/blob/master/src/pixi/textures/RenderTexture.js#L118
this.baseTexture._glTextures[gl.id]
appears to be an empty object, and when that happens the bind fails and the texImage2D starts throwing console errors like they are going out of fashion.This is easy to replicate. Just open Pixi example 11 and stick this on line 37:
renderTexture.resize(400, 300);
The text was updated successfully, but these errors were encountered: