summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2012-08-17 18:09:09 -0700
committerJordan Justen <jordan.l.justen@intel.com>2013-01-04 17:25:29 -0800
commite76ddbf0f84b7b7b50bc819aa5fa592b874fbff5 (patch)
treebf341a6bc198db12abd9d8821b97328084875736
parent8b89a5bbf5bcb5f3e6d9ee33048d1f923aa6cd56 (diff)
i965: Don't maintain programs for ff state when there is no ff
NOTE: This is a candidate for the 9.0 branch. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
-rw-r--r--src/mesa/drivers/dri/i965/brw_context.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c
index c9412e7cb8d..acfe6618d03 100644
--- a/src/mesa/drivers/dri/i965/brw_context.c
+++ b/src/mesa/drivers/dri/i965/brw_context.c
@@ -328,8 +328,8 @@ brwCreateContext(int api,
intel->batch.need_workaround_flush = true;
- ctx->VertexProgram._MaintainTnlProgram = true;
- ctx->FragmentProgram._MaintainTexEnvProgram = true;
+ ctx->VertexProgram._MaintainTnlProgram = ctx->API != API_OPENGL_CORE;
+ ctx->FragmentProgram._MaintainTexEnvProgram = ctx->API != API_OPENGL_CORE;
brw_draw_init( brw );