From 4a71993ec6ef433bc44dc91c8cc776c7b402fe9f Mon Sep 17 00:00:00 2001 From: Thilo Schulz Date: Thu, 16 Jun 2011 22:28:13 +0000 Subject: patch by Zack Middleton (#5044) - Fix a few comments in tr_local.h - A bit of refactoring of the cpp macros --- src/renderer/tr_local.h | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/src/renderer/tr_local.h b/src/renderer/tr_local.h index 1dea4bb3..fe7a4ba5 100644 --- a/src/renderer/tr_local.h +++ b/src/renderer/tr_local.h @@ -40,15 +40,16 @@ typedef unsigned int glIndex_t; // parallel on a dual cpu machine #define SMP_FRAMES 2 -// 12 bits +// 14 bits +// can't be increased without changing bit packing for drawsurfs // see QSORT_SHADERNUM_SHIFT -#define MAX_SHADERS 16384 +#define SHADERNUM_BITS 14 +#define MAX_SHADERS (1< 32 + #error "Need to update sorting, too many bits." +#endif extern int gl_filter_min, gl_filter_max; -- cgit