From b440c13ffa15049d6d049e152a31d32e69d61626 Mon Sep 17 00:00:00 2001 From: Eric Heien Date: Fri, 14 Feb 2003 19:25:42 +0000 Subject: [PATCH] bug fix svn path=/trunk/boinc/; revision=916 --- api/windows_opengl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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