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
Since 8.2.3 having two (or more) sprites and changing the visibility of one of them will replace the texture (in batcher textures array) with a null and throw during rendering:
TypeError: Cannot read properties of null (reading 'source')
at GlTextureSystem.bind (GlTextureSystem.mjs:53:28)
at GlBatchAdaptor.execute (GlBatchAdaptor.mjs:56:24)
at BatcherPipe.execute (BatcherPipe.mjs:53:19)
at executeInstructions (executeInstructions.mjs:7:40)
at RenderGroupSystem.render (RenderGroupSystem.mjs:50:5)
at SystemRunner.emit (SystemRunner.mjs:19:20)
at WebGLRenderer.render (AbstractRenderer.mjs:89:25)
at _PixiApplication.render (Application.mjs:29:19)
at TickerListener.emit (TickerListener.mjs:40:18)
at _Ticker2.update (Ticker.mjs:257:29)
Expected Behavior
Should not throw an error
Steps to Reproduce
You need two sprites with different textures and set visible to false to one of them
Current Behavior
Since 8.2.3 having two (or more) sprites and changing the visibility of one of them will replace the texture (in batcher textures array) with a null and throw during rendering:
Expected Behavior
Should not throw an error
Steps to Reproduce
You need two sprites with different textures and set visible to false to one of them
Environment
pixi.js
version: ^8.2.3Possible Solution
I would say it should either:
Additional Information
No response
The text was updated successfully, but these errors were encountered: