Fix: Data races on cursor state in OpenGL backends
This commit is contained in:
		 Jonathan G Rennison
					Jonathan G Rennison
				
			
				
					committed by
					
						 Michael Lutz
						Michael Lutz
					
				
			
			
				
	
			
			
			 Michael Lutz
						Michael Lutz
					
				
			
						parent
						
							fbd0a2e65a
						
					
				
				
					commit
					39b7ef31f8
				
			| @@ -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(); | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user