diff options
author | Eric Anholt <eric@anholt.net> | 2011-05-19 08:48:42 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2011-05-26 10:07:38 -0700 |
commit | f147599ef4b0d14c25a7e0d3f9f1c9b0229bb6fc (patch) | |
tree | 38041ac862ffd96cd8c64fb9b735d1e2f2d18f91 /src/mesa/drivers/dri/i965/brw_sf.c | |
parent | c095335fa54498ec54e4587b5f84ad6afd8f1857 (diff) | |
download | external_mesa3d-f147599ef4b0d14c25a7e0d3f9f1c9b0229bb6fc.zip external_mesa3d-f147599ef4b0d14c25a7e0d3f9f1c9b0229bb6fc.tar.gz external_mesa3d-f147599ef4b0d14c25a7e0d3f9f1c9b0229bb6fc.tar.bz2 |
i965: Remove linear_color for GL_PERSPECTIVE_CORRECTION_HINT.
From the GL 2.1 spec:
"Required perspective-correct interpolation for all fragment
attributes except depth in sections 3.4.1 and 3.5.1, effectively
making GL PERSPECTIVE CORRECT HINT a no-op."
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_sf.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_sf.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_sf.c b/src/mesa/drivers/dri/i965/brw_sf.c index 9b82fe1..c222777 100644 --- a/src/mesa/drivers/dri/i965/brw_sf.c +++ b/src/mesa/drivers/dri/i965/brw_sf.c @@ -181,9 +181,6 @@ static void upload_sf_prog(struct brw_context *brw) key.do_flat_shading = (ctx->Light.ShadeModel == GL_FLAT); key.do_twoside_color = (ctx->Light.Enabled && ctx->Light.Model.TwoSide); - /* _NEW_HINT */ - key.linear_color = (ctx->Hint.PerspectiveCorrection == GL_FASTEST); - /* _NEW_POLYGON */ if (key.do_twoside_color) { /* If we're rendering to a FBO, we have to invert the polygon |