From: Vinson Lee Date: Tue, 7 Aug 2012 07:13:41 +0000 (-0700) Subject: translate: Fix typo in is_legal_int_format_combo. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7528e2104fdda88a9eca5d84d979a21f5c517dc9;p=mesa.git translate: Fix typo in is_legal_int_format_combo. Fixes same on both sides defect reported by Coverity. Signed-off-by: Vinson Lee Reviewed-by: José Fonseca --- diff --git a/src/gallium/auxiliary/translate/translate_generic.c b/src/gallium/auxiliary/translate/translate_generic.c index 0b6ebf5dabe..72099af6a9d 100644 --- a/src/gallium/auxiliary/translate/translate_generic.c +++ b/src/gallium/auxiliary/translate/translate_generic.c @@ -773,7 +773,7 @@ is_legal_int_format_combo( const struct util_format_description *src, for (i = 0; i < nr; i++) { /* The signs must match. */ - if (src->channel[i].type != src->channel[i].type) { + if (src->channel[i].type != dst->channel[i].type) { return FALSE; }