OpenGL: Avoid data races around _cursor

This commit is contained in:
Jonathan G Rennison
2021-04-05 23:22:55 +01:00
parent 59daa573b5
commit 0e959a0563
5 changed files with 22 additions and 8 deletions

View File

@@ -179,7 +179,7 @@ void VideoDriver_SDL_OpenGL::Paint()
}
OpenGLBackend::Get()->Paint();
if (_cursor.in_window) OpenGLBackend::Get()->DrawMouseCursor();
OpenGLBackend::Get()->DrawMouseCursor();
SDL_GL_SwapWindow(this->sdl_window);
}