summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texstate.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2006-05-22 14:17:32 +0000
committerKeith Whitwell <[email protected]>2006-05-22 14:17:32 +0000
commit5ddc53f899598396003ec6c723f8132c76aafe79 (patch)
tree5cbcc879ad55cdc0da34fe00457028a18cb81b81 /src/mesa/main/texstate.c
parent7e3fa7e837aaf687996abdd8511f6bf32e2c9097 (diff)
Better caching for texenv programs.
Initialize some values correctly.
Diffstat (limited to 'src/mesa/main/texstate.c')
-rw-r--r--src/mesa/main/texstate.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c
index 7e762edd256..ea3873c3804 100644
--- a/src/mesa/main/texstate.c
+++ b/src/mesa/main/texstate.c
@@ -3198,6 +3198,8 @@ _mesa_init_texture(GLcontext *ctx)
ctx->Texture.SharedPalette = GL_FALSE;
_mesa_init_colortable(&ctx->Texture.Palette);
+ _mesa_TexEnvProgramCacheInit( ctx );
+
/* Allocate proxy textures */
if (!alloc_proxy_textures( ctx ))
return GL_FALSE;