;
continue;
}
- if(FAKELIGHT_ENABLED)
+ if(FAKELIGHT_ENABLED || depthonly || prepass)
{
rsurface.uselightmaptexture = false;
// simply scan ahead until we find a different texture or lightmap state
}
else
{
- rsurface.uselightmaptexture = surfacelist[i]->lightmaptexture != NULL && !depthonly && !prepass;
+ rsurface.uselightmaptexture = surfacelist[i]->lightmaptexture != NULL;
// simply scan ahead until we find a different texture or lightmap state
for (;j < numsurfaces && texture == surfacelist[j]->texture && rsurface.uselightmaptexture == (surfacelist[j]->lightmaptexture != NULL);j++)
;
;
continue;
}
- if(FAKELIGHT_ENABLED)
+ if(FAKELIGHT_ENABLED || depthonly || prepass)
{
rsurface.uselightmaptexture = false;
// simply scan ahead until we find a different texture or lightmap state
}
else
{
- rsurface.uselightmaptexture = surfacelist[i]->lightmaptexture != NULL && !depthonly && !prepass;
+ rsurface.uselightmaptexture = surfacelist[i]->lightmaptexture != NULL;
// simply scan ahead until we find a different texture or lightmap state
for (;j < numsurfaces && texture == surfacelist[j]->texture && rsurface.uselightmaptexture == (surfacelist[j]->lightmaptexture != NULL);j++)
;