Merge branch 'fix_opengl_on_mac' into yubo

merge-requests/7/merge
Ulukyn 4 years ago
commit f88796b575

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

Loading…
Cancel
Save