From 529e1d356919952b13b29e2425d96074d8e14f37 Mon Sep 17 00:00:00 2001 From: ChunEon Park Date: Sun, 21 Apr 2013 22:31:58 +0900 Subject: [PATCH] evas/evas_gl - cast arguments properly according to the spec of the gles/gl APIs. --- src/modules/evas/engines/gl_common/evas_gl_api.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/modules/evas/engines/gl_common/evas_gl_api.c b/src/modules/evas/engines/gl_common/evas_gl_api.c index 52f97be..76ac687 100644 --- a/src/modules/evas/engines/gl_common/evas_gl_api.c +++ b/src/modules/evas/engines/gl_common/evas_gl_api.c @@ -1500,7 +1500,11 @@ void _evgld_glShaderSource(GLuint shader, GLsizei count, const char* const * string, const GLint* length) { EVGL_FUNC_BEGIN(); - glShaderSource(shader, count, string, length); +#ifdef GL_GLES + glShaderSource(shader, count, (const GLchar * const *) string, length); +#else + glShaderSource(shader, count, (const GLchar **) string, length); +#endif GLERR(__FUNCTION__, __FILE__, __LINE__, ""); EVGL_FUNC_END(); } -- 2.7.4