diff options
author | Keith Whitwell <keith@tungstengraphics.com> | 2005-07-11 10:10:38 +0000 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2005-07-11 10:10:38 +0000 |
commit | ce721143b4d44d239baefe965e499606149b15cb (patch) | |
tree | 74469b61580b842c8e7d3d8813fc562165d4562b /src/mesa/main/texstate.c | |
parent | 9311bc253e0942af621b7efab0549ed75c0ce4a8 (diff) |
Cache texenv programs to avoid repeated compilation (Ben Skeggs)
Diffstat (limited to 'src/mesa/main/texstate.c')
-rw-r--r-- | src/mesa/main/texstate.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c index 92bd843b202..a425de42168 100644 --- a/src/mesa/main/texstate.c +++ b/src/mesa/main/texstate.c @@ -39,6 +39,7 @@ #include "texobj.h" #include "teximage.h" #include "texstate.h" +#include "texenvprogram.h" #include "mtypes.h" #include "math/m_xform.h" #include "math/m_matrix.h" @@ -3247,4 +3248,6 @@ void _mesa_free_texture_data( GLcontext *ctx ) for (i = 0; i < MAX_TEXTURE_IMAGE_UNITS; i++) _mesa_free_colortable_data( &ctx->Texture.Unit[i].ColorTable ); + + _mesa_TexEnvProgramCacheDestroy( ctx ); } |