diff --git a/src/gui/opengl/qopengl.h b/src/gui/opengl/qopengl.h index 809b82184ab..f5c2f5d24a6 100644 --- a/src/gui/opengl/qopengl.h +++ b/src/gui/opengl/qopengl.h @@ -54,6 +54,15 @@ QT_BEGIN_HEADER # else # include # 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