minor tweaks

This commit is contained in:
Garux 2024-02-03 17:34:58 +06:00
parent f36b8999b0
commit 4b26129c47
2 changed files with 7 additions and 9 deletions

View File

@ -3316,8 +3316,8 @@ void StoreSurfaceLightmaps( bool fastAllocate, bool storeForReal ){
/* store it */
//% Sys_Printf( "Emitting: %s (%d", csi->shader, strlen( csi->shader ) );
int cont = bspShaders[ ds->shaderNum ].contentFlags;
int surf = bspShaders[ ds->shaderNum ].surfaceFlags;
const int cont = bspShaders[ ds->shaderNum ].contentFlags;
const int surf = bspShaders[ ds->shaderNum ].surfaceFlags;
ds->shaderNum = EmitShader( csi->shader, &cont, &surf );
//% Sys_Printf( ")\n" );
}
@ -3336,16 +3336,16 @@ void StoreSurfaceLightmaps( bool fastAllocate, bool storeForReal ){
/* store it */
//% Sys_Printf( "Emitting: %s (%d", csi->shader, strlen( csi->shader ) );
int cont = bspShaders[ ds->shaderNum ].contentFlags;
int surf = bspShaders[ ds->shaderNum ].surfaceFlags;
const int cont = bspShaders[ ds->shaderNum ].contentFlags;
const int surf = bspShaders[ ds->shaderNum ].surfaceFlags;
ds->shaderNum = EmitShader( csi->shader, &cont, &surf );
//% Sys_Printf( ")\n" );
}
/* use the normal plain-jane shader */
else{
int cont = bspShaders[ ds->shaderNum ].contentFlags;
int surf = bspShaders[ ds->shaderNum ].surfaceFlags;
const int cont = bspShaders[ ds->shaderNum ].contentFlags;
const int surf = bspShaders[ ds->shaderNum ].surfaceFlags;
ds->shaderNum = EmitShader( info->si->shader, &cont, &surf );
}
}

View File

@ -1890,8 +1890,6 @@ static int FilterFaceIntoTree( mapDrawSurface_t *ds, tree_t& tree ){
subdivides a patch into an approximate curve and filters it into the tree
*/
#define FILTER_SUBDIVISION 8
static int FilterPatchIntoTree( mapDrawSurface_t *ds, tree_t& tree ){
int refs = 0;