Changed: Fixed non-Mac compilation

fix_opengl_on_mac
Ulukyn 4 years ago
parent d130a7f826
commit 107dbc1987

@ -1584,11 +1584,13 @@ void registerGlExtensions(CGlExtensions &ext)
{ {
H_AUTO_OGL(registerGlExtensions); H_AUTO_OGL(registerGlExtensions);
#ifdef NL_OS_MAC
CGLContextObj ctx = CGLGetCurrentContext(); CGLContextObj ctx = CGLGetCurrentContext();
if (ctx == NULL) if (ctx == NULL)
{ {
nlerror("No OpenGL context set"); nlerror("No OpenGL context set");
} }
#endif
// OpenGL 1.2 ?? // OpenGL 1.2 ??
const char *nglVersion = (const char *)glGetString (GL_VERSION); const char *nglVersion = (const char *)glGetString (GL_VERSION);

Loading…
Cancel
Save