]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_warp.c
Fix for image replacement in sprites, now the sprite extension is stripped before...
[xonotic/darkplaces.git] / gl_warp.c
index 812b82a6bbfe9a01e3df1c9f53e6b1461f015403..9a1f70e7f335ee7de235e70cb82ac67fa1a5b916 100644 (file)
--- a/gl_warp.c
+++ b/gl_warp.c
@@ -176,17 +176,12 @@ void GL_SubdivideSurface (msurface_t *fa)
 
 
 
-extern qboolean lighthalf;
-
 int skyboxside[6];
 
 char skyname[256];
 
 // LordHavoc: moved LoadTGA and LoadPCX to gl_draw.c
 
-extern int image_width, image_height;
-
-byte* loadimagepixels (char* filename, qboolean complain, int matchwidth, int matchheight);
 /*
 ==================
 R_LoadSkyBox
@@ -405,6 +400,8 @@ void R_SkyDome()
 
 void R_Sky()
 {
+       if (!r_render.value)
+               return;
        if (!skyname[0])
                return;
        glDisable(GL_DEPTH_TEST);