summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/auxiliary/translate/translate_generic.c2
1 files changed, 1 insertions, 1 deletions
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;
}