|
|
@ -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);
|
|
|
|