fixed g3d viewer (to use glew)

This commit is contained in:
Mark Vejvoda 2011-11-18 08:50:52 +00:00
parent 316739c5bd
commit 0787c09d9b
2 changed files with 9 additions and 0 deletions

View File

@ -490,6 +490,14 @@ void MainWindow::init() {
#else
glCanvas->SetCurrent();
#endif
GLuint err = glewInit();
if (GLEW_OK != err) {
fprintf(stderr, "Error [main]: glewInit failed: %s\n", glewGetErrorString(err));
//return 1;
throw std::runtime_error((char *)glewGetErrorString(err));
}
//renderer->init();
//wxCommandEvent event;

View File

@ -3,6 +3,7 @@
#include <string>
#include <GL/glew.h>
#include <wx/wx.h>
#include <wx/glcanvas.h>
//#include <wx/clrpicker.h>