summaryrefslogtreecommitdiff
path: root/tests/OffscreenContext.h
diff options
context:
space:
mode:
authorDon Bright <hugh.m.bright@gmail.com>2011-08-27 22:11:47 (GMT)
committerDon Bright <hugh.m.bright@gmail.com>2011-08-27 22:11:47 (GMT)
commiteb79c56ece95f5508e9ee12326995a84a1f9a5f2 (patch)
tree72118446d93704377b3e980abc2922a1492dca02 /tests/OffscreenContext.h
parentb68537b6ac032cb138e4c6225c6be8680f9664f7 (diff)
allow compilation and running on linux. use SDL for OpenGL dummy window
Diffstat (limited to 'tests/OffscreenContext.h')
-rw-r--r--tests/OffscreenContext.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/OffscreenContext.h b/tests/OffscreenContext.h
index 0300bcb..f1c7123 100644
--- a/tests/OffscreenContext.h
+++ b/tests/OffscreenContext.h
@@ -1,7 +1,13 @@
#ifndef OFFSCREENCONTEXT_H_
#define OFFSCREENCONTEXT_H_
+#ifdef Q_WS_MAC
#include <OpenGL/OpenGL.h>
+#else
+#include <GL/glew.h>
+#include <GL/gl.h>
+#endif
+
#include <iostream> // for error output
#define REPORTGLERROR(task) { GLenum tGLErr = glGetError(); if (tGLErr != GL_NO_ERROR) { std::cout << "OpenGL error " << tGLErr << " while " << task << "\n"; } }
contact: Jan Huwald // Impressum