minor tweaks
This commit is contained in:
parent
f36b8999b0
commit
4b26129c47
|
|
@ -3316,8 +3316,8 @@ void StoreSurfaceLightmaps( bool fastAllocate, bool storeForReal ){
|
||||||
|
|
||||||
/* store it */
|
/* store it */
|
||||||
//% Sys_Printf( "Emitting: %s (%d", csi->shader, strlen( csi->shader ) );
|
//% Sys_Printf( "Emitting: %s (%d", csi->shader, strlen( csi->shader ) );
|
||||||
int cont = bspShaders[ ds->shaderNum ].contentFlags;
|
const int cont = bspShaders[ ds->shaderNum ].contentFlags;
|
||||||
int surf = bspShaders[ ds->shaderNum ].surfaceFlags;
|
const int surf = bspShaders[ ds->shaderNum ].surfaceFlags;
|
||||||
ds->shaderNum = EmitShader( csi->shader, &cont, &surf );
|
ds->shaderNum = EmitShader( csi->shader, &cont, &surf );
|
||||||
//% Sys_Printf( ")\n" );
|
//% Sys_Printf( ")\n" );
|
||||||
}
|
}
|
||||||
|
|
@ -3336,17 +3336,17 @@ void StoreSurfaceLightmaps( bool fastAllocate, bool storeForReal ){
|
||||||
|
|
||||||
/* store it */
|
/* store it */
|
||||||
//% Sys_Printf( "Emitting: %s (%d", csi->shader, strlen( csi->shader ) );
|
//% Sys_Printf( "Emitting: %s (%d", csi->shader, strlen( csi->shader ) );
|
||||||
int cont = bspShaders[ ds->shaderNum ].contentFlags;
|
const int cont = bspShaders[ ds->shaderNum ].contentFlags;
|
||||||
int surf = bspShaders[ ds->shaderNum ].surfaceFlags;
|
const int surf = bspShaders[ ds->shaderNum ].surfaceFlags;
|
||||||
ds->shaderNum = EmitShader( csi->shader, &cont, &surf );
|
ds->shaderNum = EmitShader( csi->shader, &cont, &surf );
|
||||||
//% Sys_Printf( ")\n" );
|
//% Sys_Printf( ")\n" );
|
||||||
}
|
}
|
||||||
|
|
||||||
/* use the normal plain-jane shader */
|
/* use the normal plain-jane shader */
|
||||||
else{
|
else{
|
||||||
int cont = bspShaders[ ds->shaderNum ].contentFlags;
|
const int cont = bspShaders[ ds->shaderNum ].contentFlags;
|
||||||
int surf = bspShaders[ ds->shaderNum ].surfaceFlags;
|
const int surf = bspShaders[ ds->shaderNum ].surfaceFlags;
|
||||||
ds->shaderNum = EmitShader( info->si->shader, &cont, &surf );
|
ds->shaderNum = EmitShader( info->si->shader, &cont, &surf );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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
|
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 ){
|
static int FilterPatchIntoTree( mapDrawSurface_t *ds, tree_t& tree ){
|
||||||
int refs = 0;
|
int refs = 0;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user