gallium/aux/util: Trivial, we already have format use it
authorEdward O'Callaghan <eocallaghan@alterapraxis.com>
Thu, 3 Dec 2015 09:44:16 +0000 (20:44 +1100)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 3 Dec 2015 22:41:23 +0000 (23:41 +0100)
No need to dereference again, fixup for clarity.

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/util/u_surface.c

index 70ed911b7f187d9ebd682952950a606c17640b4e..6aa44f9602a06471952ee698ff08a314b1d60440 100644 (file)
@@ -397,7 +397,7 @@ util_clear_render_target(struct pipe_context *pipe,
          }
       }
       else {
-         util_pack_color(color->f, dst->format, &uc);
+         util_pack_color(color->f, format, &uc);
       }
 
       util_fill_box(dst_map, dst->format,