[Mesa-dev] [PATCH 2/3] mesa: Don't bother updating ff texture state if we have a fragment shader.
Eric Anholt
eric at anholt.net
Fri Jan 11 20:57:40 PST 2013
---
src/mesa/main/texstate.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c
index 3adea54..a2541fc 100644
--- a/src/mesa/main/texstate.c
+++ b/src/mesa/main/texstate.c
@@ -618,7 +618,8 @@ update_texture_state( struct gl_context *ctx )
if (enabledFragTargets)
enabledFragUnits |= (1 << unit);
- update_tex_combine(ctx, texUnit);
+ if (!fprog)
+ update_tex_combine(ctx, texUnit);
}
--
1.7.10.4
More information about the mesa-dev
mailing list