mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 08:14:48 +02:00
added glewInit
This commit is contained in:
parent
25af277f65
commit
eb55dd26e5
1 changed files with 10 additions and 0 deletions
|
@ -323,6 +323,16 @@ void Application::initializeGL() {
|
|||
glutInit(&argc, 0);
|
||||
#endif
|
||||
|
||||
#ifdef WIN32
|
||||
GLenum err = glewInit();
|
||||
if (GLEW_OK != err) {
|
||||
/* Problem: glewInit failed, something is seriously wrong. */
|
||||
qDebug("Error: %s\n", glewGetErrorString(err));
|
||||
}
|
||||
qDebug("Status: Using GLEW %s\n", glewGetString(GLEW_VERSION));
|
||||
#endif
|
||||
|
||||
|
||||
// Before we render anything, let's set up our viewFrustumOffsetCamera with a sufficiently large
|
||||
// field of view and near and far clip to make it interesting.
|
||||
//viewFrustumOffsetCamera.setFieldOfView(90.0);
|
||||
|
|
Loading…
Reference in a new issue