mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-23 02:38:52 -05:00
Removed swap interval re-application hack.
This approach is not compatible with multi-threading.
This commit is contained in:
parent
ed18c145cd
commit
b067bb6304
|
@ -563,17 +563,6 @@ static LRESULT CALLBACK windowProc(HWND hWnd, UINT uMsg,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case WM_DWMCOMPOSITIONCHANGED:
|
|
||||||
{
|
|
||||||
// HACK: Re-apply interval when desktop composition is toggled to
|
|
||||||
// ensure WGL swap interval is disabled when necessary
|
|
||||||
_GLFWwindow* previous = _glfwPlatformGetCurrentContext();
|
|
||||||
_glfwPlatformMakeContextCurrent(window);
|
|
||||||
_glfwPlatformSwapInterval(window->wgl.interval);
|
|
||||||
_glfwPlatformMakeContextCurrent(previous);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
case WM_DROPFILES:
|
case WM_DROPFILES:
|
||||||
{
|
{
|
||||||
HDROP hDrop = (HDROP) wParam;
|
HDROP hDrop = (HDROP) wParam;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user