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
When sharing pixi.js canvas with other frameworks (like three.js) and calling renderer.runners.reset.emit() between rendering with three and pixi, pixi.js is unable to render the scene, and webgl warning INVALID_OPERATION: uniformMatrix3fv: location is not from current program is emitted in the console.
Expected Behavior
Both frameworks are able to render their corresponding scenes successfully
Steps to Reproduce
Create Pixi.js WebGLRenderer
Create Three.js WebGLRenderer and pass it the canvas that Pixi.js Renderer created
Run pixiRenderer.runners.reset.emit()
Render something with Pixi.js
Run `threeRenderer.resetState()
Render something with three.js
Go to step 3
Next render from Pixi.js will fail, while three.js will render successfully
Environment
pixi.js version: 8.1.0
Browser & Version: Arc Browser Version 1.40.1 (49250) (Chromium Engine Version 124.0.6367.92)
Current Behavior
When sharing pixi.js canvas with other frameworks (like three.js) and calling
renderer.runners.reset.emit()
between rendering with three and pixi, pixi.js is unable to render the scene, and webgl warningINVALID_OPERATION: uniformMatrix3fv: location is not from current program
is emitted in the console.Expected Behavior
Both frameworks are able to render their corresponding scenes successfully
Steps to Reproduce
pixiRenderer.runners.reset.emit()
Next render from Pixi.js will fail, while three.js will render successfully
Environment
pixi.js
version: 8.1.0Possible Solution
If instead of
renderer.runners.reset.emit()
you callrenderer.runners.contextChange.emit(renderer.gl)
the problem goes awayAdditional Information
No response
The text was updated successfully, but these errors were encountered: