Since the specs of the API are different.

//GLES
void glShaderSource(GLuint shader,  GLsizei count,  const GLchar * const 
*string,  const GLint *length); 
//GL
void glShaderSource(GLuint  shader,  GLsizei  count,  const GLchar ** string,  
const GLint * length);
 


------------------------------------
-Regards, Hermet- 
-----Original Message-----
From: "Tom Hacohen"<[email protected]> 
To: "Enlightenment developer list"<[email protected]>; 
Cc: 
Sent: 2013-04-18 (목) 20:45:00
Subject: [E-devel] Evas engines gl_common annoying warning

Hey guys,

We've had this annoying warning for a while now. We are apparently 
passing a const array of const strings to a function that expects a 
non-const array of const strings. Why is that? It can be potentially bad 
and should be fixed. Will anyone who knows what's the correct thing to 
do here do something about it? Warning:

../../src/modules/evas/engines/gl_common/evas_gl_api.c: In function 
'_evgld_glShaderSource':
../../src/modules/evas/engines/gl_common/evas_gl_api.c:1503:4: warning: 
passing argument 3 of 'glShaderSource' discards 'const' qualifier from 
pointer target type [enabled by default]
/usr/include/GL/glext.h:5794:21: note: expected 'const GLchar **' but 
argument is of type 'const char * const*'

--
Tom.

------------------------------------------------------------------------------
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
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

------------------------------------------------------------------------------
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
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to