diff --git a/api/windows_opengl.cpp b/api/windows_opengl.cpp index 5d4aed2df6..77f78989ca 100755 --- a/api/windows_opengl.cpp +++ b/api/windows_opengl.cpp @@ -278,7 +278,7 @@ BOOL CreateGLWindow(char* title, int width, int height, int bits, bool initially SetFocus(hWnd); // Sets Keyboard Focus To The Window ReSizeGLScene(width, height); // Set Up Our Perspective GL Screen - if (!InitGL()) { // Initialize Our Newly Created GL Window + if (InitGL() != GL_NO_ERROR) { // Initialize Our Newly Created GL Window KillGLWindow(); // Reset The Display MessageBox(NULL,"Initialization Failed.","ERROR",MB_OK|MB_ICONEXCLAMATION); return FALSE; // Return FALSE