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