summaryrefslogtreecommitdiff
path: root/src/video/cocoa/cocoa_ogl.mm
diff options
context:
space:
mode:
authorJonathan G Rennison <j.g.rennison@gmail.com>2021-04-05 23:22:55 +0100
committerMichael Lutz <michi@icosahedron.de>2021-04-10 18:31:42 +0200
commit39b7ef31f8754a7e9d535d3b061a2e167ccd1338 (patch)
tree272609f16a811b5f01b6bae37ea0c8b07d7c8d9a /src/video/cocoa/cocoa_ogl.mm
parentfbd0a2e65a5563e8f8059aae1adb0f375f2d3348 (diff)
downloadopenttd-39b7ef31f8754a7e9d535d3b061a2e167ccd1338.tar.xz
Fix: Data races on cursor state in OpenGL backends
Diffstat (limited to 'src/video/cocoa/cocoa_ogl.mm')
-rw-r--r--src/video/cocoa/cocoa_ogl.mm2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video/cocoa/cocoa_ogl.mm b/src/video/cocoa/cocoa_ogl.mm
index 8d02428e0..f8c2e97e0 100644
--- a/src/video/cocoa/cocoa_ogl.mm
+++ b/src/video/cocoa/cocoa_ogl.mm
@@ -134,7 +134,7 @@ static bool _allowSoftware;
CGLSetCurrentContext(ctx);
OpenGLBackend::Get()->Paint();
- if (_cursor.in_window) OpenGLBackend::Get()->DrawMouseCursor();
+ OpenGLBackend::Get()->DrawMouseCursor();
[ super drawInCGLContext:ctx pixelFormat:pf forLayerTime:t displayTime:ts ];
}