mesa: avoid valgrind warning due to opaque only being set sometimes
authorIlia Mirkin <imirkin@alum.mit.edu>
Fri, 8 Jul 2016 05:35:15 +0000 (01:35 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 19 Aug 2016 02:48:55 +0000 (22:48 -0400)
commit27e59ed477b747b7b545553847692fa331055319
treeb952f1e3147c7dcb2ab9ef43d4ff0dd63fc63279
parent59bb8211804a471e87d4de54264f3e19ed4f435e
mesa: avoid valgrind warning due to opaque only being set sometimes

Valgrind complains with a "Conditional jump or move depends on
uninitialised value(s)" warning due to opaque being conditionally
initialized. However in the punchthrough_alpha == true case, it is
always initialized, so just flip the condition around to silence the
warning.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
src/mesa/main/texcompress_etc.c