diff options
author | Samuel Rødal <samuel.rodal@nokia.com> | 2011-01-05 11:14:38 (GMT) |
---|---|---|
committer | Samuel Rødal <samuel.rodal@nokia.com> | 2011-01-05 11:43:21 (GMT) |
commit | 17e6529f7ff18c6f47f1fcc35379addd78d7156e (patch) | |
tree | 986b80b5df8a00c5800b35fd5720d636b4c15e87 /src/opengl | |
parent | 84b5bbc77045cdc267626ff86f309664283abed4 (diff) | |
download | Qt-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')
-rw-r--r-- | src/opengl/qglfunctions.h | 5 |
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 |