summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texstate.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2005-07-11 10:10:38 +0000
committerKeith Whitwell <[email protected]>2005-07-11 10:10:38 +0000
commitce721143b4d44d239baefe965e499606149b15cb (patch)
tree74469b61580b842c8e7d3d8813fc562165d4562b /src/mesa/main/texstate.c
parent9311bc253e0942af621b7efab0549ed75c0ce4a8 (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.c3
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 );
}