summaryrefslogtreecommitdiff
path: root/src/renderer/tr_local.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/renderer/tr_local.h')
-rw-r--r--src/renderer/tr_local.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/renderer/tr_local.h b/src/renderer/tr_local.h
index 9a194401..c7b584da 100644
--- a/src/renderer/tr_local.h
+++ b/src/renderer/tr_local.h
@@ -836,8 +836,8 @@ the bits are allocated as follows:
17-30 : sorted shader index
*/
#define QSORT_FOGNUM_SHIFT 2
-#define QSORT_ENTITYNUM_SHIFT 7
-#define QSORT_SHADERNUM_SHIFT (QSORT_ENTITYNUM_SHIFT+ENTITYNUM_BITS)
+#define QSORT_REFENTITYNUM_SHIFT 7
+#define QSORT_SHADERNUM_SHIFT (QSORT_REFENTITYNUM_SHIFT+REFENTITYNUM_BITS)
#if (QSORT_SHADERNUM_SHIFT+SHADERNUM_BITS) > 32
#error "Need to update sorting, too many bits."
#endif
@@ -954,7 +954,7 @@ typedef struct {
trRefEntity_t *currentEntity;
trRefEntity_t worldEntity; // point currentEntity at this when rendering world
int currentEntityNum;
- int shiftedEntityNum; // currentEntityNum << QSORT_ENTITYNUM_SHIFT
+ int shiftedEntityNum; // currentEntityNum << QSORT_REFENTITYNUM_SHIFT
model_t *currentModel;
viewParms_t viewParms;
@@ -1703,7 +1703,7 @@ typedef enum {
typedef struct {
drawSurf_t drawSurfs[MAX_DRAWSURFS];
dlight_t dlights[MAX_DLIGHTS];
- trRefEntity_t entities[MAX_ENTITIES];
+ trRefEntity_t entities[MAX_REFENTITIES];
srfPoly_t *polys;//[MAX_POLYS];
polyVert_t *polyVerts;//[MAX_POLYVERTS];
renderCommandList_t commands;