projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9de2c4f
)
glsl2: Don't try to dump GLSL IR for a shader that didn't compile.
author
Eric Anholt
<eric@anholt.net>
Thu, 5 Aug 2010 05:57:08 +0000
(22:57 -0700)
committer
Eric Anholt
<eric@anholt.net>
Thu, 5 Aug 2010 16:17:45 +0000
(09:17 -0700)
src/mesa/program/ir_to_mesa.cpp
patch
|
blob
|
history
diff --git
a/src/mesa/program/ir_to_mesa.cpp
b/src/mesa/program/ir_to_mesa.cpp
index f0e013369aa8275799c3a2edaaa8ec2e5cd864f5..74996ae4802a1280c3a23825bcd16212e0abad4c 100644
(file)
--- a/
src/mesa/program/ir_to_mesa.cpp
+++ b/
src/mesa/program/ir_to_mesa.cpp
@@
-2646,9
+2646,11
@@
_mesa_glsl_compile_shader(GLcontext *ctx, struct gl_shader *shader)
printf("GLSL source for shader %d:\n", shader->Name);
printf("%s\n", shader->Source);
- printf("GLSL IR for shader %d:\n", shader->Name);
- _mesa_print_ir(shader->ir, NULL);
- printf("\n\n");
+ if (shader->CompileStatus) {
+ printf("GLSL IR for shader %d:\n", shader->Name);
+ _mesa_print_ir(shader->ir, NULL);
+ printf("\n\n");
+ }
}
/* Retain any live IR, but trash the rest. */