summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dist/changes-4.8.02
-rw-r--r--src/opengl/qglfunctions.h5
2 files changed, 7 insertions, 0 deletions
diff --git a/dist/changes-4.8.0 b/dist/changes-4.8.0
index c55faf6..fa50f24 100644
--- a/dist/changes-4.8.0
+++ b/dist/changes-4.8.0
@@ -51,6 +51,8 @@ QtGui
- Removed dependency of OpenGL Utility Library (GLU)
- Added QGLFunctions, which provides cross-platform access to the
OpenGL/ES 2.0 API.
+ - Including <QtOpenGL> will not work in combination with GLEW, as
+ QGLFunctions will undefine GLEW's defines.
****************************************************************************
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