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>
This commit is contained in:
Simon Hausmann 2012-09-13 12:52:49 +02:00 committed by Qt by Nokia
parent 34cd8fd566
commit d580eb2390

View File

@ -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