projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8b4f8c
)
mesa: validate shader before drawing (for debugging, disabled)
author
Brian Paul
<brianp@vmware.com>
Tue, 25 Aug 2009 23:43:54 +0000
(17:43 -0600)
committer
Brian Paul
<brianp@vmware.com>
Tue, 25 Aug 2009 23:46:10 +0000
(17:46 -0600)
src/mesa/main/context.c
patch
|
blob
|
history
diff --git
a/src/mesa/main/context.c
b/src/mesa/main/context.c
index 38ec4188098850b53ef20136b2fd8297429de38a..a9e520716d3c8c66e6d7cd89a75f687c2cdf6b59 100644
(file)
--- a/
src/mesa/main/context.c
+++ b/
src/mesa/main/context.c
@@
-1595,6
+1595,16
@@
_mesa_valid_to_render(GLcontext *ctx, const char *where)
"%s(shader not linked), where");
return GL_FALSE;
}
+#if 0 /* not normally enabled */
+ {
+ char errMsg[100];
+ if (!_mesa_validate_shader_program(ctx, ctx->Shader.CurrentProgram,
+ errMsg)) {
+ _mesa_warning(ctx, "Shader program %u is invalid: %s",
+ ctx->Shader.CurrentProgram->Name, errMsg);
+ }
+ }
+#endif
}
else {
if (ctx->VertexProgram.Enabled && !ctx->VertexProgram._Enabled) {