Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all
Unified · Split
| @@ -323,6 +323,16 @@ void Application::initializeGL() { · 322 unmodified lines | |||
| 323 | glutInit(&argc, 0); | 323 | glutInit(&argc, 0); |
| 324 | #endif | 324 | #endif |
| 325 | 325 | ||
| 326 | #ifdef WIN32 | ||
| 327 | GLenum err = glewInit(); | ||
| 328 | if (GLEW_OK != err) { | ||
| 329 | /* Problem: glewInit failed, something is seriously wrong. */ | ||
| 330 | qDebug("Error: %s\n", glewGetErrorString(err)); | ||
| 331 | } | ||
| 332 | qDebug("Status: Using GLEW %s\n", glewGetString(GLEW_VERSION)); | ||
| 333 | #endif | ||
| 334 | |||
| 335 | |||
| 326 | // Before we render anything, let's set up our viewFrustumOffsetCamera with a sufficiently large | 336 | // Before we render anything, let's set up our viewFrustumOffsetCamera with a sufficiently large |
| 327 | // field of view and near and far clip to make it interesting. | 337 | // field of view and near and far clip to make it interesting. |
| 328 | //viewFrustumOffsetCamera.setFieldOfView(90.0); | 338 | //viewFrustumOffsetCamera.setFieldOfView(90.0); |