mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
LP bug 992049: patch from Andrew Wason
This commit is contained in:
parent
d1c80b3876
commit
4ced98fae9
@ -1103,14 +1103,14 @@ glsl_report_shader_errors(GSG *gsg, unsigned int shader) {
|
|||||||
|
|
||||||
gsg->_glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &length);
|
gsg->_glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &length);
|
||||||
|
|
||||||
if (length > 0) {
|
if (length > 1) {
|
||||||
info_log = (char *) malloc(length);
|
info_log = (char *) malloc(length);
|
||||||
gsg->_glGetShaderInfoLog(shader, length, &num_chars, info_log);
|
gsg->_glGetShaderInfoLog(shader, length, &num_chars, info_log);
|
||||||
if (strcmp(info_log, "Success.\n") != 0) {
|
if (strcmp(info_log, "Success.\n") != 0) {
|
||||||
GLCAT.error(false) << info_log << "\n";
|
GLCAT.error(false) << info_log << "\n";
|
||||||
}
|
}
|
||||||
|
free(info_log);
|
||||||
}
|
}
|
||||||
delete[] info_log;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
|
Loading…
x
Reference in New Issue
Block a user