The dummy Win32 window that we use to capture display change events and
to create dummy WGL contexts was created with CS_OWNDC, so we really do
not need to (and should not) call ReleaseDC() on the HDC that we
obtained from it, so drop these calls.
display_win32->dummy_context_wgl.hglrc = NULL;
}
- if (display_win32->dummy_context_wgl.hdc != NULL)
- {
- ReleaseDC (display_win32->hwnd, display_win32->dummy_context_wgl.hdc);
- display_win32->dummy_context_wgl.hdc = NULL;
- }
-
DestroyWindow (display_win32->hwnd);
display_win32->hwnd = NULL;
}