From a02e494ae3b49141b3dfb7cd1ef1ae7bf53b2c0d Mon Sep 17 00:00:00 2001 From: rdb Date: Wed, 12 Dec 2012 08:24:03 +0000 Subject: [PATCH] Patch by Josh Enes to fix LP bug 1089245 --- panda/src/glstuff/glShaderContext_src.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/panda/src/glstuff/glShaderContext_src.cxx b/panda/src/glstuff/glShaderContext_src.cxx index 0894791394..fb9b9afb2e 100755 --- a/panda/src/glstuff/glShaderContext_src.cxx +++ b/panda/src/glstuff/glShaderContext_src.cxx @@ -1277,7 +1277,7 @@ glsl_report_shader_errors(GSG *gsg, unsigned int shader) { if (length > 1) { info_log = (char *) malloc(length); gsg->_glGetShaderInfoLog(shader, length, &num_chars, info_log); - if (strcmp(info_log, "Success.\n") != 0) { + if (strcmp(info_log, "Success.\n") != 0 && strcmp(info_log, "No errors.\n") != 0) { GLCAT.error(false) << info_log << "\n"; } free(info_log); @@ -1300,7 +1300,7 @@ glsl_report_program_errors(GSG *gsg, unsigned int program) { if (length > 1) { info_log = (char *) malloc(length); gsg->_glGetProgramInfoLog(program, length, &num_chars, info_log); - if (strcmp(info_log, "Success.\n") != 0) { + if (strcmp(info_log, "Success.\n") != 0 && strcmp(info_log, "No errors.\n") != 0) { GLCAT.error(false) << info_log << "\n"; } free(info_log);