From 9767846c91145dc152fd6242ab56181964b82874 Mon Sep 17 00:00:00 2001 From: Atlante45 Date: Tue, 4 Mar 2014 11:06:23 -0800 Subject: [PATCH] fix for windows --- interface/src/Application.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 29833a9ddb..75c1d9afd6 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -403,6 +403,12 @@ void Application::initializeGL() { #endif #ifdef WIN32 + static bool isInitialized = false; + if (isInitialized) { + return; + } else { + isInitialized = true; + } GLenum err = glewInit(); if (GLEW_OK != err) { /* Problem: glewInit failed, something is seriously wrong. */