From 3c99cf162d0e70bf29ebd299015ef4370921716c Mon Sep 17 00:00:00 2001 From: Atlante45 Date: Tue, 4 Mar 2014 13:17:19 -0800 Subject: [PATCH] Fix was at the wrong spot --- interface/src/Application.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 75c1d9afd6..741ec5381a 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -398,17 +398,17 @@ void Application::initializeGL() { // initialize glut for shape drawing; Qt apparently initializes it on OS X #ifndef __APPLE__ - int argc = 0; - glutInit(&argc, 0); - #endif - - #ifdef WIN32 static bool isInitialized = false; if (isInitialized) { return; } else { isInitialized = true; } + int argc = 0; + glutInit(&argc, 0); + #endif + + #ifdef WIN32 GLenum err = glewInit(); if (GLEW_OK != err) { /* Problem: glewInit failed, something is seriously wrong. */