Fix: Data races on cursor state in OpenGL backends

This commit is contained in:
Jonathan G Rennison
2021-04-05 23:22:55 +01:00
committed by Michael Lutz
parent fbd0a2e65a
commit 39b7ef31f8
5 changed files with 25 additions and 8 deletions

View File

@@ -65,6 +65,12 @@ private:
PaletteID last_sprite_pal = (PaletteID)-1; ///< Last uploaded remap palette.
bool clear_cursor_cache = false; ///< A clear of the cursor cache is pending.
Point cursor_pos; ///< Cursor position
bool cursor_in_window; ///< Cursor inside this window
PalSpriteID cursor_sprite_seq[16]; ///< Current image of cursor
Point cursor_sprite_pos[16]; ///< Relative position of individual cursor sprites
uint cursor_sprite_count; ///< Number of cursor sprites to draw
OpenGLBackend();
~OpenGLBackend();