evas/evas_gl - cast arguments properly according to the spec of the gles/gl APIs.

This commit is contained in:
ChunEon Park 2013-04-21 22:31:58 +09:00
parent 436d63e01a
commit 529e1d3569
1 changed files with 5 additions and 1 deletions

View File

@ -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();
}