mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 22:18:13 +02:00
fix varying interpolation
This commit is contained in:
parent
0552abce0e
commit
ccea3ff8a9
1 changed files with 5 additions and 2 deletions
|
|
@ -198,6 +198,7 @@ draw_wide_line( GLcontext *ctx, SWspan *span, GLboolean xMajor )
|
||||||
#define INTERP_Z
|
#define INTERP_Z
|
||||||
#define INTERP_FOG
|
#define INTERP_FOG
|
||||||
#define INTERP_MULTITEX
|
#define INTERP_MULTITEX
|
||||||
|
#define INTERP_VARYING
|
||||||
#define RENDER_SPAN(span) \
|
#define RENDER_SPAN(span) \
|
||||||
if (ctx->Line.StippleFlag) { \
|
if (ctx->Line.StippleFlag) { \
|
||||||
span.arrayMask |= SPAN_MASK; \
|
span.arrayMask |= SPAN_MASK; \
|
||||||
|
|
@ -298,10 +299,12 @@ _swrast_choose_line( GLcontext *ctx )
|
||||||
_swrast_choose_aa_line_function(ctx);
|
_swrast_choose_aa_line_function(ctx);
|
||||||
ASSERT(swrast->Line);
|
ASSERT(swrast->Line);
|
||||||
}
|
}
|
||||||
else if (ctx->Texture._EnabledCoordUnits) {
|
else if (ctx->Texture._EnabledCoordUnits
|
||||||
|
|| ctx->FragmentProgram._Current) {
|
||||||
/* textured lines */
|
/* textured lines */
|
||||||
if (ctx->Texture._EnabledCoordUnits > 0x1
|
if (ctx->Texture._EnabledCoordUnits > 0x1
|
||||||
|| NEED_SECONDARY_COLOR(ctx)) {
|
|| NEED_SECONDARY_COLOR(ctx)
|
||||||
|
|| ctx->FragmentProgram._Current) {
|
||||||
/* multi-texture and/or separate specular color */
|
/* multi-texture and/or separate specular color */
|
||||||
USE(multitextured_line);
|
USE(multitextured_line);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue