From: Howell Tam <howell.tam@fluffyspider.com>

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...



SVN revision: 52941
This commit is contained in:
Howell Tam 2010-10-01 06:33:17 +00:00 committed by Carsten Haitzler
parent 6abe0b3a94
commit 307190c594
1 changed files with 14 additions and 0 deletions

View File

@ -406,7 +406,21 @@ gl_compile_link_error(GLuint target, const char *action)
{
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)
{