mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
mesa: validate shader before drawing (for debugging, disabled)
This commit is contained in:
parent
d8b4f8c848
commit
a088e5631d
1 changed files with 10 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue