Subject: Evas evas_gl_shader.c patch
Patch for evas_gl_shader.c, need to check shader compile
errors too, not only program linking errors.
Not that it's very useful now since all Evas' shaders are in
good shape already, but it was useful when we're mucking around with
things.
And also to make Robi happy that there are some FST
contributions to E ;) And probably more to come...
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@52941
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
{
int loglen = 0, chars = 0;
char *logtxt;
+
+ /* Shader info log */
+ glGetShaderiv(target, GL_INFO_LOG_LENGTH, &loglen);
+ if (loglen > 0)
+ {
+ logtxt = calloc(loglen, sizeof(char));
+ if (logtxt)
+ {
+ glGetShaderInfoLog(target, loglen, &chars, logtxt);
+ printf("Failed to %s: %s\n", action, logtxt);
+ free(logtxt);
+ }
+ }
+ /* Program info log */
glGetProgramiv(target, GL_INFO_LOG_LENGTH, &loglen);
if (loglen > 0)
{