mesa: Remove unnecessary condition.
authorCourtney Goeltzenleuchter <courtney@lunarg.com>
Fri, 21 Feb 2014 17:31:43 +0000 (10:31 -0700)
committerMatt Turner <mattst88@gmail.com>
Fri, 21 Feb 2014 18:16:10 +0000 (10:16 -0800)
Identified by Valgrind memory check. Initialized block-opaque in a
different patch. This test seems unnecessary. If opaque must be true,
just set to true.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Courtney Goeltzenleuchter <courtney@LunarG.com>
src/mesa/main/texcompress_etc.c

index e3862be..cbda689 100644 (file)
@@ -429,8 +429,7 @@ etc2_rgb8_parse_block(struct etc2_block *block,
       block->is_planar_mode = true;
 
       /* opaque bit must be set in planar mode */
-      if (!block->opaque)
-         block->opaque = true;
+      block->opaque = true;
 
       for (i = 0; i < 3; i++) {
          block->base_colors[0][i] = etc2_base_color_o_planar(src, i);