summaryrefslogtreecommitdiffstats
path: root/src/opengl/qglfunctions.h
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@nokia.com>2011-01-05 11:14:38 (GMT)
committerSamuel Rødal <samuel.rodal@nokia.com>2011-01-05 11:43:21 (GMT)
commit17e6529f7ff18c6f47f1fcc35379addd78d7156e (patch)
tree986b80b5df8a00c5800b35fd5720d636b4c15e87 /src/opengl/qglfunctions.h
parent84b5bbc77045cdc267626ff86f309664283abed4 (diff)
downloadQt-17e6529f7ff18c6f47f1fcc35379addd78d7156e.zip
Qt-17e6529f7ff18c6f47f1fcc35379addd78d7156e.tar.gz
Qt-17e6529f7ff18c6f47f1fcc35379addd78d7156e.tar.bz2
Added warning if <QGLFunctions> is included when GLEW is present.
GLEW can not be used in combination with <QGLFunctions>. Reviewed-by: Eskil Abrahamsen Blomfeldt
Diffstat (limited to 'src/opengl/qglfunctions.h')
-rw-r--r--src/opengl/qglfunctions.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/opengl/qglfunctions.h b/src/opengl/qglfunctions.h
index e06de7f..88f43c0 100644
--- a/src/opengl/qglfunctions.h
+++ b/src/opengl/qglfunctions.h
@@ -42,6 +42,11 @@
#ifndef QGLFUNCTIONS_H
#define QGLFUNCTIONS_H
+#ifdef __GLEW_H__
+#warning qglfunctions.h is not compatible with GLEW, GLEW defines will be undefined
+#warning To use GLEW with Qt, do not include <QtOpenGL> or <QGLFunctions> after glew.h
+#endif
+
#include <QtOpenGL/qgl.h>
QT_BEGIN_HEADER