]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - r_sky.c
DP_QC_URI_ESCAPE
[xonotic/darkplaces.git] / r_sky.c
diff --git a/r_sky.c b/r_sky.c
index c771a315ec4b074587e64c64337ef236bf6608a8..092fd8b13f7480763bdabfd6eedda6fcd5701b50 100644 (file)
--- a/r_sky.c
+++ b/r_sky.c
@@ -76,12 +76,18 @@ R_SetSkyBox
 void R_UnloadSkyBox(void)
 {
        int i;
+       int c = 0;
        for (i = 0;i < 6;i++)
        {
                if (skyboxside[i])
+               {
                        R_FreeTexture(skyboxside[i]);
+                       c++;
+               }
                skyboxside[i] = NULL;
        }
+       if (c && developer_loading.integer)
+               Con_Printf("unloading skybox\n");
 }
 
 int R_LoadSkyBox(void)
@@ -128,6 +134,9 @@ int R_LoadSkyBox(void)
        if (j == 3)
                return false;
 
+       if (developer_loading.integer)
+               Con_Printf("loading skybox \"%s\"\n", name);
+
        return true;
 }
 
@@ -290,6 +299,7 @@ static void R_SkyBox(void)
 
        if(r_refdef.fogenabled)
        {
+               R_SetupGenericShader(false);
                GL_BlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
                GL_Color(r_refdef.fogcolor[0], r_refdef.fogcolor[1], r_refdef.fogcolor[2], 1 - r_refdef.fogmasktable[FOGMASKTABLEWIDTH-1]);
                for (i = 0;i < 6;i++)