mirror of
https://github.com/glfw/glfw.git
synced 2024-11-26 06:14:35 +00:00
parent
ba4504a9c7
commit
255f9f0234
@ -602,7 +602,7 @@ void _glfwPlatformSwapBuffers(_GLFWwindow* window)
|
|||||||
// HACK: Use DwmFlush when desktop composition is enabled
|
// HACK: Use DwmFlush when desktop composition is enabled
|
||||||
if (_glfwIsCompositionEnabled() && !window->monitor)
|
if (_glfwIsCompositionEnabled() && !window->monitor)
|
||||||
{
|
{
|
||||||
int count = window->wgl.interval;
|
int count = abs(window->wgl.interval);
|
||||||
while (count--)
|
while (count--)
|
||||||
_glfw_DwmFlush();
|
_glfw_DwmFlush();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user