[Mesa-dev] [PATCH] glsl: always re-validate program pipeline
Timothy Arceri
timothy.arceri at collabora.com
Mon Nov 30 16:13:37 PST 2015
Just because the validation passed the last time is was called doesn't
automatically mean it will pass again the next time its called.
Cc: "11.1" <mesa-stable at lists.freedesktop.org>
https://bugs.freedesktop.org/show_bug.cgi?id=93180
---
src/mesa/main/context.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/mesa/main/context.c b/src/mesa/main/context.c
index be542dd..11747d9 100644
--- a/src/mesa/main/context.c
+++ b/src/mesa/main/context.c
@@ -2030,7 +2030,7 @@ _mesa_valid_to_render(struct gl_context *ctx, const char *where)
}
/* A pipeline object is bound */
- if (ctx->_Shader->Name && !ctx->_Shader->Validated) {
+ if (ctx->_Shader->Name) {
/* Error message will be printed inside _mesa_validate_program_pipeline.
*/
if (!_mesa_validate_program_pipeline(ctx, ctx->_Shader, GL_TRUE)) {
--
2.4.3
More information about the mesa-dev
mailing list