mirror of
https://github.com/overte-org/overte.git
synced 2025-07-23 12:24:26 +02:00
Let's try initializing glut before Qt, since we're getting a warning on OS X.
This commit is contained in:
parent
7211fd7027
commit
f15c670c4e
1 changed files with 3 additions and 3 deletions
|
@ -224,15 +224,15 @@ Application::Application(int& argc, char** argv) :
|
||||||
// enable mouse tracking; otherwise, we only get drag events
|
// enable mouse tracking; otherwise, we only get drag events
|
||||||
_glWidget->setMouseTracking(true);
|
_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
|
// initialization continues in initializeGL when OpenGL context is ready
|
||||||
}
|
}
|
||||||
|
|
||||||
void Application::initializeGL() {
|
void Application::initializeGL() {
|
||||||
printLog( "Created Display Window.\n" );
|
printLog( "Created Display Window.\n" );
|
||||||
|
|
||||||
int argc = 0;
|
|
||||||
glutInit(&argc, 0);
|
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
glewInit();
|
glewInit();
|
||||||
printLog( "Glew Init complete.\n" );
|
printLog( "Glew Init complete.\n" );
|
||||||
|
|
Loading…
Reference in a new issue