Fix was at the wrong spot

This commit is contained in:
Atlante45 2014-03-04 13:17:19 -08:00
parent 9767846c91
commit 3c99cf162d

View file

@ -398,17 +398,17 @@ void Application::initializeGL() {
// initialize glut for shape drawing; Qt apparently initializes it on OS X // initialize glut for shape drawing; Qt apparently initializes it on OS X
#ifndef __APPLE__ #ifndef __APPLE__
int argc = 0;
glutInit(&argc, 0);
#endif
#ifdef WIN32
static bool isInitialized = false; static bool isInitialized = false;
if (isInitialized) { if (isInitialized) {
return; return;
} else { } else {
isInitialized = true; isInitialized = true;
} }
int argc = 0;
glutInit(&argc, 0);
#endif
#ifdef WIN32
GLenum err = glewInit(); GLenum err = glewInit();
if (GLEW_OK != err) { if (GLEW_OK != err) {
/* Problem: glewInit failed, something is seriously wrong. */ /* Problem: glewInit failed, something is seriously wrong. */