mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
don't call draw_z_sky_polys for modes that don't need it
This commit is contained in:
parent
df55030fa8
commit
b65c96ad99
1 changed files with 5 additions and 2 deletions
|
@ -811,13 +811,16 @@ R_DrawSkyChain (const msurface_t *sky_chain)
|
|||
if (gl_sky_clip->int_val) {
|
||||
draw_skybox_sky_polys (sky_chain);
|
||||
}
|
||||
draw_z_sky_polys (sky_chain);
|
||||
} else if (gl_sky_clip->int_val == 2) {
|
||||
draw_id_sky_polys (sky_chain);
|
||||
} else if (gl_sky_clip->int_val) {
|
||||
// XXX not properly implemented
|
||||
draw_skydome_sky_polys (sky_chain);
|
||||
return; // XXX not properly implemented
|
||||
//draw_z_sky_polys (sky_chain);
|
||||
} else {
|
||||
draw_z_sky_polys (sky_chain);
|
||||
}
|
||||
draw_z_sky_polys (sky_chain);
|
||||
|
||||
if (gl_sky_debug->int_val) {
|
||||
const msurface_t *sc;
|
||||
|
|
Loading…
Reference in a new issue