first step on the way to merged gl_screen.c and screen.c

This commit is contained in:
Bill Currie 2000-12-07 11:12:19 +00:00
parent be6e940417
commit 4ee0be8f91
3 changed files with 881 additions and 826 deletions

View file

@ -55,6 +55,8 @@
#include "console.h"
#include "glquake.h"
qboolean r_cache_thrash;
extern double realtime;
int skytexturenum;
@ -810,18 +812,18 @@ void R_DrawBrushModel (entity_t *e)
if (((psurf->flags & SURF_PLANEBACK) && (dot < -BACKFACE_EPSILON)) ||
(!(psurf->flags & SURF_PLANEBACK) && (dot > BACKFACE_EPSILON)))
{
if (psurf->flags & SURF_DRAWSKY) {
if (psurf->flags & SURF_DRAWTURB) {
GL_WaterSurface(psurf);
} else if (psurf->flags & SURF_DRAWSKY) {
psurf->texturechain = sky_chain;
sky_chain = psurf;
return;
}
if (psurf->flags & SURF_DRAWTURB)
GL_WaterSurface(psurf);
else if (gl_texsort->int_val)
} else if (gl_texsort->int_val) {
R_RenderBrushPoly (psurf);
else
} else {
R_DrawMultitexturePoly (psurf);
}
}
}
@ -934,24 +936,20 @@ void R_RecursiveWorldNode (mnode_t *node)
if ((dot < 0) ^ !!(surf->flags & SURF_PLANEBACK))
continue; // wrong side
if (surf->flags & SURF_DRAWSKY) {
if (surf->flags & SURF_DRAWTURB) {
surf->texturechain = waterchain;
waterchain = surf;
} else if (surf->flags & SURF_DRAWSKY) {
surf->texturechain = sky_chain;
sky_chain = surf;
continue;
}
if (surf->flags & SURF_DRAWTURB)
{
surf->texturechain = waterchain;
waterchain = surf;
}
else if (gl_texsort->int_val)
{
} else if (gl_texsort->int_val) {
surf->texturechain = surf->texinfo->texture->texturechain;
surf->texinfo->texture->texturechain = surf;
}
else
} else {
R_DrawMultitexturePoly (surf);
}
}
}

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff