summaryrefslogtreecommitdiffstats
path: root/src/gui/opengl/qopengldebug.h
diff options
context:
space:
mode:
authorMartin Smith <martin.smith@qt.io>2016-11-29 12:20:47 +0100
committerMartin Smith <martin.smith@qt.io>2016-12-03 19:17:53 +0000
commitf27a1ae9a837a9375319d3705fd615556be59d66 (patch)
tree7fb0c5860a38d8af4d9e341f8065af482538e11a /src/gui/opengl/qopengldebug.h
parent5497e6de89fa85f6367a558419d35af117a16a38 (diff)
doc: Always declare GL types for clangqdoc
GLint, GLuint, GLfloat, and GLenum must be declared for clangqdoc because it must generate the documentation for opengl support whether or not opengl support is provided. Change-Id: I1dccac86fe72a30509bc563dda0b60bcb156bc0b Reviewed-by: Martin Smith <martin.smith@qt.io>
Diffstat (limited to 'src/gui/opengl/qopengldebug.h')
-rw-r--r--src/gui/opengl/qopengldebug.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/opengl/qopengldebug.h b/src/gui/opengl/qopengldebug.h
index 74b2731f7e..6b10c36291 100644
--- a/src/gui/opengl/qopengldebug.h
+++ b/src/gui/opengl/qopengldebug.h
@@ -52,6 +52,11 @@
#include <QtCore/qdebug.h>
#include <QtGui/qopenglcontext.h>
+#if defined(Q_CLANG_QDOC)
+#undef GLuint
+typedef unsigned int GLuint;
+#endif
+
QT_BEGIN_NAMESPACE
class QOpenGLDebugLogger;