hermet pushed a commit to branch master.

commit 529e1d356919952b13b29e2425d96074d8e14f37
Author: ChunEon Park <[email protected]>
Date:   Sun Apr 21 22:31:58 2013 +0900

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

-- 

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter

Reply via email to