summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorCourtney Goeltzenleuchter <[email protected]>2014-02-21 10:31:43 -0700
committerMatt Turner <[email protected]>2014-02-21 10:16:10 -0800
commit941769be81f3486f2793fbcdb3f70f468a073152 (patch)
treef0f4f98fa24cd4e43321126aaf772e840b3f6fbd /src/mesa
parent9b2fe7cf96dc25f52ae43c8dfda20ee354c329f2 (diff)
mesa: Remove unnecessary condition.
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 <[email protected]> Signed-off-by: Courtney Goeltzenleuchter <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/texcompress_etc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mesa/main/texcompress_etc.c b/src/mesa/main/texcompress_etc.c
index e3862be45e6..cbda689409e 100644
--- a/src/mesa/main/texcompress_etc.c
+++ b/src/mesa/main/texcompress_etc.c
@@ -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);