glfw/include/GLFW
Daniel Levin 23ef05dd79 Allow to set initial surface swap interval
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.
2023-08-21 05:22:38 -07:00
..
glfw3.h Allow to set initial surface swap interval 2023-08-21 05:22:38 -07:00
glfw3native.h Fix native access macros being mutually exclusive 2022-07-28 15:56:47 +02:00