From 7623a08ada32fbae2e5c97d1e8d1c8f11e2959a4 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 2 Dec 2000 07:41:47 +0000 Subject: [PATCH] don't subdivide sky polys. we don't need it and it only slows us down --- source/gl_rsurf.c | 2 -- source/model_brush.c | 6 ++---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/source/gl_rsurf.c b/source/gl_rsurf.c index e1b773d..b5740ca 100644 --- a/source/gl_rsurf.c +++ b/source/gl_rsurf.c @@ -1296,8 +1296,6 @@ void GL_BuildLightmaps (void) { if ( m->surfaces[i].flags & SURF_DRAWTURB ) continue; - if ( m->surfaces[i].flags & SURF_DRAWSKY ) - continue; GL_CreateSurfaceLightmap (m->surfaces + i); BuildSurfaceDisplayList (m->surfaces + i); } diff --git a/source/model_brush.c b/source/model_brush.c index 5142c33..2b70f19 100644 --- a/source/model_brush.c +++ b/source/model_brush.c @@ -597,14 +597,12 @@ void Mod_LoadFaces (lump_t *l) if (!strncmp(out->texinfo->texture->name,"sky",3)) // sky { + void BuildSurfaceDisplayList (msurface_t*); out->flags |= (SURF_DRAWSKY | SURF_DRAWTILED); -#ifndef QUAKE2 - GL_SubdivideSurface (out); // cut up polygon for warps -#endif continue; } - if (!strncmp(out->texinfo->texture->name,"*",1)) // turbulent + if (out->texinfo->texture->name[0] == '*') // turbulent { out->flags |= (SURF_DRAWTURB | SURF_DRAWTILED); for (i=0 ; i<2 ; i++)