phaser icon indicating copy to clipboard operation
phaser copied to clipboard

context restore error

Open actionmoon opened this issue 4 years ago • 0 comments

Version

  • Phaser Version: 3.55.2
  • Operating system: all
  • Browser: all

Description

WARNING: Too many active WebGL contexts. Oldest context will be lost.

When encountering this kind of problem, it will trigger the WebGL context loss event, but how to recover from the context loss.

The function contextRestoredHandler in WebGLRenderer only reinitializes WebGLRender, but it does not restore the related Buffer, Texture, and Shader

Example Test Code

Additional Information

飞书20210902-100929

actionmoon avatar Sep 02 '21 02:09 actionmoon