summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/state.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2011-03-12 15:00:55 -0800
committerEric Anholt <[email protected]>2011-03-12 15:11:01 -0800
commit098f9c5325de16bfb5bf8b0e93e0ec1871db4a76 (patch)
treef362a760607ac951a97c91705926f40b82cc0c27 /src/mesa/main/state.c
parent07c420a3c6799a744088f1bbe1c1a5ff157a1771 (diff)
Revert "mesa: Convert fixed function fragment program generator to GLSL IR."
This reverts commit 7cb87dffce2c7a37f960f3a865cf92fd193dd8c5. There were regressions (Bug #35244) and more review has been requested.
Diffstat (limited to 'src/mesa/main/state.c')
-rw-r--r--src/mesa/main/state.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/mesa/main/state.c b/src/mesa/main/state.c
index 1b2b2f32464..19c9bbabda2 100644
--- a/src/mesa/main/state.c
+++ b/src/mesa/main/state.c
@@ -277,21 +277,17 @@ update_program(struct gl_context *ctx)
fsProg->FragmentProgram);
}
else if (ctx->FragmentProgram._Enabled) {
- /* use user-defined fragment program */
+ /* use user-defined vertex program */
_mesa_reference_fragprog(ctx, &ctx->FragmentProgram._Current,
ctx->FragmentProgram.Current);
}
else if (ctx->FragmentProgram._MaintainTexEnvProgram) {
/* Use fragment program generated from fixed-function state.
*/
- struct gl_shader_program *f = _mesa_get_fixed_func_fragment_program(ctx);
-#if 0
- _mesa_reference_shader_program(ctx,
- &ctx->Shader.CurrentFragmentProgram, f);
-#endif
-
_mesa_reference_fragprog(ctx, &ctx->FragmentProgram._Current,
- f->FragmentProgram);
+ _mesa_get_fixed_func_fragment_program(ctx));
+ _mesa_reference_fragprog(ctx, &ctx->FragmentProgram._TexEnvProgram,
+ ctx->FragmentProgram._Current);
}
else {
/* no fragment program */