fix err output.

SVN revision: 46239
This commit is contained in:
Carsten Haitzler 2010-02-17 06:27:22 +00:00
parent ce8b3c77ab
commit 6b42415c3b
2 changed files with 2 additions and 1 deletions

View File

@ -346,7 +346,7 @@ void (*glsym_glDeleteFramebuffers) (GLsizei a, const GLuint *b);
# define GLERR(fn, fl, ln, op) \
{ \
int __gl_err = glGetError(); \
if (__gl_err != GL_NO_ERROR) glerr(__gl_err, fn, fl, ln, op); \
if (__gl_err != GL_NO_ERROR) glerr(__gl_err, fl, fn, ln, op); \
}
#else
# define GLERR(fn, fl, ln, op)

View File

@ -942,6 +942,7 @@ shader_array_flush(Evas_GL_Context *gc)
if (gc->array.num <= 0) return;
// fprintf(stderr, " flush array %i\n", gc->array.num);
GLERR(__FUNCTION__, __FILE__, __LINE__, "<flush err>");
if (gc->shader.cur_prog != gc->shader.current.cur_prog)
{
glUseProgram(gc->shader.cur_prog);