mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
same fix elsewhere in code
This commit is contained in:
parent
4ced98fae9
commit
5f8283c9fb
@ -1126,14 +1126,14 @@ glsl_report_program_errors(GSG *gsg, unsigned int program) {
|
||||
|
||||
gsg->_glGetProgramiv(program, GL_INFO_LOG_LENGTH, &length);
|
||||
|
||||
if (length > 0) {
|
||||
if (length > 1) {
|
||||
info_log = (char *) malloc(length);
|
||||
gsg->_glGetProgramInfoLog(program, length, &num_chars, info_log);
|
||||
if (strcmp(info_log, "Success.\n") != 0) {
|
||||
GLCAT.error(false) << info_log << "\n";
|
||||
}
|
||||
free(info_log);
|
||||
}
|
||||
delete[] info_log;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
x
Reference in New Issue
Block a user