mesa: Don't bother updating ff texture state if we have a fragment shader.
authorEric Anholt <eric@anholt.net>
Tue, 8 Jan 2013 17:56:24 +0000 (09:56 -0800)
committerEric Anholt <eric@anholt.net>
Fri, 18 Jan 2013 21:03:41 +0000 (13:03 -0800)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/main/texstate.c

index 3adea542f57b24620665e066df9445faa9a1bef9..a2541fc9f1c61223167ee9e1bea6a605aec84dbb 100644 (file)
@@ -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);
    }