Bläddra i källkod

Merge pull request #1151 from Consuuume/master

Fixed issue in PlatformWindows.cpp with __hrc causing a crash if null.
Sean Paul Taylor 12 år sedan
förälder
incheckning
224b1d335b
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      gameplay/src/PlatformWindows.cpp

+ 1 - 1
gameplay/src/PlatformWindows.cpp

@@ -740,7 +740,7 @@ bool initializeGL(WindowCreationParams* params)
     wglDeleteContext(tempContext);
 
     // Make the new context current
-    if (!wglMakeCurrent(__hdc, __hrc) || !__hrc)
+    if (!__hrc || !wglMakeCurrent(__hdc, __hrc) )
     {
         GP_ERROR("Failed to make the window current.");
         return false;