summaryrefslogtreecommitdiffstats
path: root/src/mesa/program/program.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-11-01 13:16:21 -0700
committerEric Anholt <[email protected]>2011-03-11 12:55:14 -0800
commit7cb87dffce2c7a37f960f3a865cf92fd193dd8c5 (patch)
treef88d21cc6c40d4397cf5e949357d096fcb8c3329 /src/mesa/program/program.c
parent29e013e58be93aa6ed760393cf77ef34ca1d57c0 (diff)
mesa: Convert fixed function fragment program generator to GLSL IR.
This is a step towards providing a direct route for drivers accepting GLSL IR for codegen. Perhaps more importantly, it runs the fixed function fragment program through the GLSL IR optimization. Having seen how easy it is to make ugly fixed function texenv code that can do unnecessary work, this may improve real applicatinos.
Diffstat (limited to 'src/mesa/program/program.c')
-rw-r--r--src/mesa/program/program.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/program/program.c b/src/mesa/program/program.c
index cfdd0da86d8..ba2a8dc34f6 100644
--- a/src/mesa/program/program.c
+++ b/src/mesa/program/program.c
@@ -140,7 +140,7 @@ _mesa_free_program_data(struct gl_context *ctx)
#endif
#if FEATURE_NV_fragment_program || FEATURE_ARB_fragment_program
_mesa_reference_fragprog(ctx, &ctx->FragmentProgram.Current, NULL);
- _mesa_delete_program_cache(ctx, ctx->FragmentProgram.Cache);
+ _mesa_delete_shader_cache(ctx, ctx->FragmentProgram.Cache);
#endif
#if FEATURE_ARB_geometry_shader4
_mesa_reference_geomprog(ctx, &ctx->GeometryProgram.Current, NULL);