From f15c670c4e0460fe43f329f99b1bf8a6288303f0 Mon Sep 17 00:00:00 2001 From: Andrzej Kapolka Date: Wed, 15 May 2013 16:07:09 -0700 Subject: [PATCH] Let's try initializing glut before Qt, since we're getting a warning on OS X. --- interface/src/Application.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 3eeaf809d4..013f226ad3 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -224,15 +224,15 @@ Application::Application(int& argc, char** argv) : // enable mouse tracking; otherwise, we only get drag events _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 } void Application::initializeGL() { printLog( "Created Display Window.\n" ); - int argc = 0; - glutInit(&argc, 0); - #ifdef _WIN32 glewInit(); printLog( "Glew Init complete.\n" );