Let's try initializing glut before Qt, since we're getting a warning on OS X.

This commit is contained in:
Andrzej Kapolka 2013-05-15 16:07:09 -07:00
parent 7211fd7027
commit f15c670c4e

View file

@ -224,15 +224,15 @@ Application::Application(int& argc, char** argv) :
// enable mouse tracking; otherwise, we only get drag events // enable mouse tracking; otherwise, we only get drag events
_glWidget->setMouseTracking(true); _glWidget->setMouseTracking(true);
// initialize glut, which we use for rendering spheres and such
glutInit(&argc, argv);
// initialization continues in initializeGL when OpenGL context is ready // initialization continues in initializeGL when OpenGL context is ready
} }
void Application::initializeGL() { void Application::initializeGL() {
printLog( "Created Display Window.\n" ); printLog( "Created Display Window.\n" );
int argc = 0;
glutInit(&argc, 0);
#ifdef _WIN32 #ifdef _WIN32
glewInit(); glewInit();
printLog( "Glew Init complete.\n" ); printLog( "Glew Init complete.\n" );