mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 06:51:47 +00:00
Grievre's crash fix.
This commit is contained in:
parent
e43129316b
commit
79689baa83
1 changed files with 5 additions and 2 deletions
|
@ -419,8 +419,11 @@ R_DrawBrushModel (entity_t *e)
|
||||||
e->angles[0] = -e->angles[0]; // stupid quake bug
|
e->angles[0] = -e->angles[0]; // stupid quake bug
|
||||||
|
|
||||||
// Build lightmap chains
|
// Build lightmap chains
|
||||||
for (i = 0; i < model->nummodelsurfaces; i++, psurf++)
|
for (i = 0; i < model->nummodelsurfaces; i++, psurf++) {
|
||||||
|
if (psurf->flags & (SURF_DRAWTURB | SURF_DRAWSKY))
|
||||||
|
continue;
|
||||||
R_AddToLightmapChain (psurf);
|
R_AddToLightmapChain (psurf);
|
||||||
|
}
|
||||||
|
|
||||||
if (gl_mtex_active) {
|
if (gl_mtex_active) {
|
||||||
R_CalcLightmaps ();
|
R_CalcLightmaps ();
|
||||||
|
|
Loading…
Reference in a new issue