mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-17 18:28:28 +00:00
macOS: Add hint for blocking thread on OpenGL context update dispatch (#5708)
This commit is contained in:
parent
7eb13c21c6
commit
b4660e9d8b
2 changed files with 34 additions and 1 deletions
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue