u3d-community / U3D

Open-source, cross-platform 2D and 3D game engine built in C++
https://u3d.io
MIT License
187 stars 30 forks source link

AnimatedSprite2D breaks on OpenGL context lost #35

Closed lucasvinbr closed 3 months ago

lucasvinbr commented 1 year ago

( This is a copy of issue https://github.com/urho3d/urho3d/issues/2784 ) Some AnimatedSprite2D elements disappear or become weird squares after the OpenGL context is lost. This is most easily reproducible in the web samples (it immediately happens if the window isn't 1024x768), but can also be reproduced by enabling/disabling full screen in OpenGL desktop builds.

The issue does not seem to happen if the AnimationSet2D file uses a spritesheet (it's the case of the Orc in samples 49 and 50).

lucasvinbr commented 3 months ago

I no longer have this issue after the changes in the merged PR, but I think the samples have to be rebuilt to not have the issue