mirror of
https://github.com/overte-org/overte.git
synced 2025-04-15 16:02:08 +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
|
||||
#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. */
|
||||
|
|
Loading…
Reference in a new issue