ecere/gfx/gl3/gl_compat_4_4: Handling GL < 3.0 (no glGetStringi())
[sdk] / ecere / src / gfx / drivers / OpenGLDisplayDriver.ec
index 5eae4d5..c7004bd 100644 (file)
@@ -1219,7 +1219,9 @@ class OpenGLDisplayDriver : DisplayDriver
 #ifdef DIAGNOSTICS
          PrintLn("Calling ogl_LoadFunctions() in CreateDisplay()");
 #endif
-         ogl_LoadFunctions();
+         if(ogl_LoadFunctions() == ogl_LOAD_FAILED)
+            PrintLn("ogl_LoadFunctions() failed!");
+
 #ifdef DIAGNOSTICS
          PrintLn("CheckExtensions()");
 #endif