mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-07 11:58:12 +00:00
macOS: Add hint for blocking thread on OpenGL context update dispatch (#5708)
This commit is contained in:
@@ -977,6 +977,18 @@ extern "C" {
|
||||
*/
|
||||
#define SDL_HINT_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK "SDL_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK"
|
||||
|
||||
/**
|
||||
* \brief A variable controlling whether dispatching OpenGL context updates should block the dispatching thread until the main thread finishes processing
|
||||
*
|
||||
* This variable can be set to the following values:
|
||||
* "0" - Dispatching OpenGL context updates will allow the dispatching thread to continue execution.
|
||||
* "1" - Dispatching OpenGL context updates will block the dispatching thread until the main thread finishes processing.
|
||||
*
|
||||
* This hint only applies to Mac OS X
|
||||
*
|
||||
*/
|
||||
#define SDL_HINT_MAC_OPENGL_SYNC_DISPATCH "SDL_MAC_OPENGL_SYNC_DISPATCH"
|
||||
|
||||
/**
|
||||
* \brief A variable setting the double click radius, in pixels.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user