From 71e94578779e4344066d434004fd85ca493de552 Mon Sep 17 00:00:00 2001 From: Martin Peres Date: Thu, 4 Jun 2015 14:09:31 +0300 Subject: main: fix a regression in uniform handling introduced by 87a4bc5 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The comment was accurate but the condition was reversed... Reviewed-by: Jose Fonseca Reviewed-by: Tapani Pälli Signed-off-by: Martin Peres --- src/mesa/program/ir_to_mesa.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp index 50b86ada37a..514bb930e76 100644 --- a/src/mesa/program/ir_to_mesa.cpp +++ b/src/mesa/program/ir_to_mesa.cpp @@ -2410,7 +2410,7 @@ _mesa_associate_uniform_storage(struct gl_context *ctx, &shader_program->UniformStorage[location]; /* Do not associate any uniform storage to built-in uniforms */ - if (!storage->builtin) + if (storage->builtin) continue; if (location != last_location) { -- cgit v1.2.3