summaryrefslogtreecommitdiffstats
path: root/src/gui/opengl
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/opengl')
-rw-r--r--src/gui/opengl/qopengl.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gui/opengl/qopengl.h b/src/gui/opengl/qopengl.h
index 809b82184a..f5c2f5d24a 100644
--- a/src/gui/opengl/qopengl.h
+++ b/src/gui/opengl/qopengl.h
@@ -54,6 +54,15 @@ QT_BEGIN_HEADER
# else
# include <GLES2/gl2.h>
# endif
+
+/*
+ Some GLES2 implementations (like the one on Harmattan) are missing the
+ typedef for GLchar. Work around it here by adding it. The Kkronos headers
+ specify GLChar as a typedef to char, so if an implementation already
+ provides it, then this doesn't do any harm.
+*/
+typedef char GLchar;
+
# include "qopengles2ext.h"
# ifndef GL_DOUBLE
# define GL_DOUBLE GL_FLOAT