This repository has been archived by the owner. It is now read-only.
Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workaround some Windows OpenGL drivers mishandling wglMakeCurrent().
You should be able to do wglMakeCurrent(NULL, NULL), according to MSDN, since the first parameter is ignored if the second is NULL, but this causes problems on some drivers, so make sure we always have a valid HDC in the first parameter (and exit early if we already have no current context in the NULL, NULL case).
- Loading branch information
Showing with 17 additions and 5 deletions.