mirror of
https://github.com/glfw/glfw.git
synced 2024-11-22 13:04:35 +00:00
23ef05dd79
After creating surface context in _glfwPlatformCreateWindow function proceeds with reading context parameters in _glfwRefreshContextAttribs, which ends with clearing the front buffer when double buffering is enabled. Such buffer clearing implicitly calls swapBuffer, which may not behave properly with the default swap interval. And user has no control to override this swap interval value with the glfwSwapInterval, because latter may only be called after the glfwCreateWindow, when it is too late. Either clearing buffer should be disablable, or user should have control on the initial swap interval value before implicit swapBuffer is invoked. This patch implements latter by introducing GLFW_SWAP_INTERVAL window hint. Default value is -1, which matches current policy of avoiding to override swap interval. |
||
---|---|---|
.. | ||
glfw3.h | ||
glfw3native.h |