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 <mattst88@gmail.com> Signed-off-by: Courtney Goeltzenleuchter <courtney@LunarG.com>
This commit is contained in:
committed by
Matt Turner
parent
9b2fe7cf96
commit
941769be81
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user