From: Brian Paul Date: Sat, 21 Oct 2006 21:14:20 +0000 (+0000) Subject: move interpolate_varying() call X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=828d15a6e0907fe4bb7c564d453a2b1a05f109bc;p=mesa.git move interpolate_varying() call --- diff --git a/src/mesa/swrast/s_span.c b/src/mesa/swrast/s_span.c index a23a60850b2..8a2e5d118ed 100644 --- a/src/mesa/swrast/s_span.c +++ b/src/mesa/swrast/s_span.c @@ -1361,12 +1361,10 @@ shade_texture_span(GLcontext *ctx, SWspan *span) if (span->interpMask & SPAN_Z) _swrast_span_interpolate_z (ctx, span); - if (ctx->ShaderObjects._FragmentShaderPresent) - interpolate_varying(ctx, span); - /* Run fragment program/shader now */ if (ctx->ShaderObjects._FragmentShaderPresent) { - _swrast_exec_arbshader (ctx, span); + interpolate_varying(ctx, span); + _swrast_exec_arbshader(ctx, span); } else if (ctx->FragmentProgram._Enabled) { _swrast_exec_fragment_program(ctx, span);