main: fix a regression in uniform handling introduced by 87a4bc5
authorMartin Peres <martin.peres@linux.intel.com>
Thu, 4 Jun 2015 11:09:31 +0000 (14:09 +0300)
committerMartin Peres <martin.peres@linux.intel.com>
Thu, 4 Jun 2015 12:42:06 +0000 (15:42 +0300)
The comment was accurate but the condition was reversed...

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Signed-off-by: Martin Peres <martin.peres@linux.intel.com>
src/mesa/program/ir_to_mesa.cpp

index 50b86ada37adacfcf8abf137d6924aea2fe37e88..514bb930e768299c0e3e1fdafd2d45a56c0d5f56 100644 (file)
@@ -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) {