summaryrefslogtreecommitdiff
path: root/src/video/opengl.h
diff options
context:
space:
mode:
authorMichael Lutz <michi@icosahedron.de>2021-03-08 21:16:41 +0100
committerMichael Lutz <michi@icosahedron.de>2021-03-08 21:35:35 +0100
commit436cdf1fc898097a8cbe6226ad32a4055a6ca4d9 (patch)
tree1a0cd2e41ac254edce8968b2b9cf7bd7fc0ec8e3 /src/video/opengl.h
parentee69a0dc2921b42caabf89c76cf9ece691026cf0 (diff)
downloadopenttd-436cdf1fc898097a8cbe6226ad32a4055a6ca4d9.tar.xz
Fix #8825: [OpenGL] Don't clear cursor cache from the game loop thread.
Diffstat (limited to 'src/video/opengl.h')
-rw-r--r--src/video/opengl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/video/opengl.h b/src/video/opengl.h
index 3919179e4..c17a8536d 100644
--- a/src/video/opengl.h
+++ b/src/video/opengl.h
@@ -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();