diff options
author | Brian Paul <[email protected]> | 2012-01-10 12:26:58 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-01-10 12:37:38 -0700 |
commit | 991479ef51a04b7a6828b19571665401883ef916 (patch) | |
tree | fc7f5d0c60ce170b77814f1dea13bbd0224851b2 | |
parent | d6533df90d53193dc868e873285456744f48fb4d (diff) |
mesa: fix > vs. >> typo in EXPAND_3_8() macro
Found by Eirik Byrkjeflot Anonsen.
-rw-r--r-- | src/mesa/main/format_unpack.c | 2 |
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) ) |