diff options
author | Brian <brian.paul@tungstengraphics.com> | 2007-12-14 12:25:25 -0700 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2007-12-14 12:25:25 -0700 |
commit | 017f862de1f857bca29f09794539aaf411014f13 (patch) | |
tree | b48e4c1cf03529d7b3ec22aac2047bbb5c567cdc /src/mesa/state_tracker/st_atom_rasterizer.c | |
parent | f3b3ea9742e6511fa46332c2c6d2433f96cc5c10 (diff) | |
download | external_mesa3d-017f862de1f857bca29f09794539aaf411014f13.zip external_mesa3d-017f862de1f857bca29f09794539aaf411014f13.tar.gz external_mesa3d-017f862de1f857bca29f09794539aaf411014f13.tar.bz2 |
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/st_atom_rasterizer.c')
-rw-r--r-- | src/mesa/state_tracker/st_atom_rasterizer.c | 2 |
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 2a7128d..5c6b89d 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 */ |