summaryrefslogtreecommitdiff
path: root/src/renderer/tr_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/renderer/tr_main.c')
-rw-r--r--src/renderer/tr_main.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/renderer/tr_main.c b/src/renderer/tr_main.c
index 56f3cbef..bbe94236 100644
--- a/src/renderer/tr_main.c
+++ b/src/renderer/tr_main.c
@@ -1038,11 +1038,17 @@ Radix sort with 4 byte size buckets
static void R_RadixSort( drawSurf_t *source, int size )
{
static drawSurf_t scratch[ MAX_DRAWSURFS ];
-
+#ifdef Q3_LITTLE_ENDIAN
R_Radix( 0, size, source, scratch );
R_Radix( 1, size, scratch, source );
R_Radix( 2, size, source, scratch );
R_Radix( 3, size, scratch, source );
+#else
+ R_Radix( 3, size, source, scratch );
+ R_Radix( 2, size, scratch, source );
+ R_Radix( 1, size, source, scratch );
+ R_Radix( 0, size, scratch, source );
+#endif //Q3_LITTLE_ENDIAN
}
//==========================================================================================