]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
commented out r_texture_fogintensity texture generation as it's not used anywhere
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 16 Apr 2006 09:34:02 +0000 (09:34 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 16 Apr 2006 09:34:02 +0000 (09:34 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6294 d7cf8633-e32d-0410-b094-e92efae38249

gl_rmain.c
render.h

index a81e4305a0321105bb368d49d42efb30d88c69cf..4eb8db88fa4c3a82a82267ab126ceea004382952 100644 (file)
@@ -132,7 +132,7 @@ rtexture_t *r_texture_notexture;
 rtexture_t *r_texture_whitecube;
 rtexture_t *r_texture_normalizationcube;
 rtexture_t *r_texture_fogattenuation;
-rtexture_t *r_texture_fogintensity;
+//rtexture_t *r_texture_fogintensity;
 
 // information about each possible shader permutation
 r_glsl_permutation_t r_glsl_permutations[SHADERPERMUTATION_COUNT];
@@ -386,7 +386,7 @@ static void R_BuildFogTexture(void)
        double r, alpha;
 #define FOGWIDTH 64
        unsigned char data1[FOGWIDTH][4];
-       unsigned char data2[FOGWIDTH][4];
+       //unsigned char data2[FOGWIDTH][4];
        r = (-1.0/256.0) * (FOGWIDTH * FOGWIDTH);
        for (x = 0;x < FOGWIDTH;x++)
        {
@@ -399,13 +399,13 @@ static void R_BuildFogTexture(void)
                data1[x][1] = 255 - b;
                data1[x][2] = 255 - b;
                data1[x][3] = 255;
-               data2[x][0] = b;
-               data2[x][1] = b;
-               data2[x][2] = b;
-               data2[x][3] = 255;
+               //data2[x][0] = b;
+               //data2[x][1] = b;
+               //data2[x][2] = b;
+               //data2[x][3] = 255;
        }
        r_texture_fogattenuation = R_LoadTexture2D(r_main_texturepool, "fogattenuation", FOGWIDTH, 1, &data1[0][0], TEXTYPE_RGBA, TEXF_PRECACHE | TEXF_FORCELINEAR | TEXF_CLAMP, NULL);
-       r_texture_fogintensity = R_LoadTexture2D(r_main_texturepool, "fogintensity", FOGWIDTH, 1, &data2[0][0], TEXTYPE_RGBA, TEXF_PRECACHE | TEXF_FORCELINEAR | TEXF_CLAMP, NULL);
+       //r_texture_fogintensity = R_LoadTexture2D(r_main_texturepool, "fogintensity", FOGWIDTH, 1, &data2[0][0], TEXTYPE_RGBA, TEXF_PRECACHE | TEXF_FORCELINEAR | TEXF_CLAMP, NULL);
 }
 
 static const char *builtinshaderstring =
index 6871818bf1888d94a7158f0330b0df5ae34cbace..d072894b288bc5acc4fd49204adc3d4609740ed8 100644 (file)
--- a/render.h
+++ b/render.h
@@ -247,7 +247,7 @@ extern rtexture_t *r_texture_notexture;
 extern rtexture_t *r_texture_whitecube;
 extern rtexture_t *r_texture_normalizationcube;
 extern rtexture_t *r_texture_fogattenuation;
-extern rtexture_t *r_texture_fogintensity;
+//extern rtexture_t *r_texture_fogintensity;
 
 void R_TimeReport(char *name);