Decreased SHADERNUM and STATICMODEL shift values

When the number of shaders reached >1023, some surfaces started to be have random shaders started on them
The number of sorted shaders in a single game can now be up to 2048
This commit is contained in:
smallmodel 2023-08-27 22:17:16 +02:00
parent 05d3c50866
commit 30d9483504
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -1167,11 +1167,11 @@ the bits are allocated as follows:
2-6 : fog index
0-1 : dlightmap index
*/
#define QSORT_SHADERNUM_SHIFT 22
#define QSORT_SHADERNUM_SHIFT 21 // was 22, decreased in 2.0
#define QSORT_ENTITYNUM_SHIFT 8
#define QSORT_FOGNUM_SHIFT 2
#define QSORT_REFENTITYNUM_SHIFT 7
#define QSORT_STATICMODEL_SHIFT 21
#define QSORT_STATICMODEL_SHIFT 20 // was 21, decreased in 2.0
extern int gl_filter_min, gl_filter_max;