summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-11-28 00:41:36 (GMT)
committerMarius Kintel <marius@kintel.net>2011-11-28 00:41:36 (GMT)
commitcd33efb4edbfc126df3c62baaec0af7648b114ab (patch)
tree931fe1b818057f2d39a2badefeadde8002f1572f /src
parent01f1a2f9cfeab276e5e0b51f47a72c9019478f7f (diff)
GLXEW mixed with eigen2 causes weird compiler errors. This is a temporary fix
Diffstat (limited to 'src')
-rw-r--r--src/glview.cc6
-rw-r--r--src/system-gl.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/src/glview.cc b/src/glview.cc
index 4360396..b3ac966 100644
--- a/src/glview.cc
+++ b/src/glview.cc
@@ -46,6 +46,12 @@
# include <opencsg.h>
#endif
+#ifdef _WIN32
+#include <GL/wglew.h>
+#elif !defined(__APPLE__)
+#include <GL/glxew.h>
+#endif
+
#define FAR_FAR_AWAY 100000.0
GLView::GLView(QWidget *parent) : QGLWidget(parent), renderer(NULL)
diff --git a/src/system-gl.h b/src/system-gl.h
index cdbf3dc..76b49e7 100644
--- a/src/system-gl.h
+++ b/src/system-gl.h
@@ -2,6 +2,7 @@
#define SYSTEMGL_H_
#include <GL/glew.h>
+
#ifdef __APPLE__
#include <OpenGL/OpenGL.h>
#else
contact: Jan Huwald // Impressum