aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2013-04-21 22:31:58 +0900
committerChunEon Park <hermet@hermet.pe.kr>2013-04-21 22:31:58 +0900
commit529e1d356919952b13b29e2425d96074d8e14f37 (patch)
tree0b9df409edd65660ee869e4fc7cb6fe892cd05b8
parenteina_unicode.H: be nice. add more documentation for deprecated api. (diff)
downloadefl-529e1d356919952b13b29e2425d96074d8e14f37.tar.gz
evas/evas_gl - cast arguments properly according to the spec of the gles/gl APIs.
-rw-r--r--src/modules/evas/engines/gl_common/evas_gl_api.c6
1 files changed, 5 insertions, 1 deletions
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 52f97bef43..76ac6873c4 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();
}