Fix #8825: [OpenGL] Don't clear cursor cache from the game loop thread.

This commit is contained in:
Michael Lutz
2021-03-08 21:16:41 +01:00
parent ee69a0dc29
commit 436cdf1fc8
2 changed files with 19 additions and 8 deletions

View File

@@ -63,6 +63,7 @@ private:
LRUCache<SpriteID, Sprite> cursor_cache; ///< Cache of encoded cursor sprites.
PaletteID last_sprite_pal = (PaletteID)-1; ///< Last uploaded remap palette.
bool clear_cursor_cache = false; ///< A clear of the cursor cache is pending.
OpenGLBackend();
~OpenGLBackend();