diff options
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_setup_point.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_setup_point.c b/src/gallium/drivers/llvmpipe/lp_setup_point.c index 073ca5b1c88..092febdba92 100644 --- a/src/gallium/drivers/llvmpipe/lp_setup_point.c +++ b/src/gallium/drivers/llvmpipe/lp_setup_point.c @@ -224,10 +224,10 @@ setup_point_coefficients( struct lp_setup_context *setup, boolean perspective = !!(interp == LP_INTERP_PERSPECTIVE); unsigned i; - if (perspective & usage_mask) { + if (perspective && usage_mask) { fragcoord_usage_mask |= TGSI_WRITEMASK_W; } - + switch (interp) { case LP_INTERP_POSITION: /* |