History

added glewInit

Brad Hefta-Gaub committed 12 years ago

Commit eb55dd21 parent 25af2771 file · +10 −0Browse files

Showing the changes to interface/src/Application.cpp (1 of 1 file). Show all

Unified · Split

interface/src/Application.cpp+10−0
@@ -323,6 +323,16 @@ void Application::initializeGL() { · 322 unmodified lines
323 glutInit(&argc, 0);323 glutInit(&argc, 0);
324 #endif324 #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 large336 // 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);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t