summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
diff options
context:
space:
mode:
authorBrian <[email protected]>2007-12-14 12:25:25 -0700
committerBrian <[email protected]>2007-12-14 12:25:25 -0700
commit017f862de1f857bca29f09794539aaf411014f13 (patch)
treeb48e4c1cf03529d7b3ec22aac2047bbb5c567cdc /src/mesa/state_tracker
parentf3b3ea9742e6511fa46332c2c6d2433f96cc5c10 (diff)
Added origin_lower_left field to pipe_rasterizer_state
This controls whether the window origin is considered to be the lower-left or upper-left corner. This effects computation of gl_FragCoord and the application of polygon stipple.
Diffstat (limited to 'src/mesa/state_tracker')
-rw-r--r--src/mesa/state_tracker/st_atom_rasterizer.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_atom_rasterizer.c b/src/mesa/state_tracker/st_atom_rasterizer.c
index 2a7128dd27c..5c6b89d78c4 100644
--- a/src/mesa/state_tracker/st_atom_rasterizer.c
+++ b/src/mesa/state_tracker/st_atom_rasterizer.c
@@ -77,6 +77,8 @@ static void update_raster_state( struct st_context *st )
uint i;
memset(&raster, 0, sizeof(raster));
+
+ raster.origin_lower_left = 1; /* Always true for OpenGL */
/* _NEW_POLYGON, _NEW_BUFFERS
*/