diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-09-13 12:52:49 +0200 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-09-14 11:15:01 +0200 |
commit | d580eb2390758291253b17e5478a68766eedcb12 (patch) | |
tree | aab595f686020d26678a9f61c150920fea8f986c /src/gui/opengl/qopengl.h | |
parent | 34cd8fd566cd61385db12112d9515b0d5388dad3 (diff) |
Fix compilation on Harmattan
The GLES2 libraries on Harmattan do not provide a 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.
Change-Id: I0848b72b81fcc602dc8d9eecefdacb5436163040
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src/gui/opengl/qopengl.h')
-rw-r--r-- | src/gui/opengl/qopengl.h | 9 |
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 |