void _glfwPlatformSwapBuffers(_GLFWwindow* window) { // HACK: Use DwmFlush when desktop composition is enabled if (_glfwIsCompositionEnabled() && !window->monitor) { int count = abs(window->wgl.interval); while (count--) _glfw_DwmFlush(); } SwapBuffers(window->wgl.dc); }
static void swapBuffers(_GLFWwindow* window) { // HACK: Use DwmFlush when desktop composition is enabled if (isCompositionEnabled() && !window->monitor) { int count = abs(window->context.wgl.interval); while (count--) _glfw_DwmFlush(); } SwapBuffers(window->context.wgl.dc); }