mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-06 21:32:17 +02:00
Fix was at the wrong spot
This commit is contained in:
parent
9767846c91
commit
3c99cf162d
1 changed files with 5 additions and 5 deletions
|
@ -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. */
|
||||||
|
|
Loading…
Reference in a new issue