summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2012-01-10 12:26:58 -0700
committerBrian Paul <[email protected]>2012-01-10 12:37:38 -0700
commit991479ef51a04b7a6828b19571665401883ef916 (patch)
treefc7f5d0c60ce170b77814f1dea13bbd0224851b2 /src/mesa/main
parentd6533df90d53193dc868e873285456744f48fb4d (diff)
mesa: fix > vs. >> typo in EXPAND_3_8() macro
Found by Eirik Byrkjeflot Anonsen.
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/format_unpack.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/format_unpack.c b/src/mesa/main/format_unpack.c
index a7308a1578f..ff98c69cd7a 100644
--- a/src/mesa/main/format_unpack.c
+++ b/src/mesa/main/format_unpack.c
@@ -36,7 +36,7 @@
#define EXPAND_2_8(X) ( ((X) << 6) | ((X) << 4) | ((X) << 2) | (X) )
-#define EXPAND_3_8(X) ( ((X) << 5) | ((X) << 2) | ((X) > 1) )
+#define EXPAND_3_8(X) ( ((X) << 5) | ((X) << 2) | ((X) >> 1) )
#define EXPAND_4_8(X) ( ((X) << 4) | (X) )