projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2f89b0
)
st: set pipe_rasterizer_state::flatshade_first according to provoking vertex state
author
Brian Paul
<brianp@vmware.com>
Thu, 28 May 2009 18:33:30 +0000
(12:33 -0600)
committer
Brian Paul
<brianp@vmware.com>
Thu, 28 May 2009 18:33:30 +0000
(12:33 -0600)
src/mesa/state_tracker/st_atom_rasterizer.c
patch
|
blob
|
history
diff --git
a/src/mesa/state_tracker/st_atom_rasterizer.c
b/src/mesa/state_tracker/st_atom_rasterizer.c
index 4e70510c0c0fde129b62d1624706bdd9a0a9e2df..3fbcbfbf99711319e85ed5c5393a7fef8779ae6a 100644
(file)
--- a/
src/mesa/state_tracker/st_atom_rasterizer.c
+++ b/
src/mesa/state_tracker/st_atom_rasterizer.c
@@
-102,6
+102,9
@@
static void update_raster_state( struct st_context *st )
if (ctx->Light.ShadeModel == GL_FLAT)
raster->flatshade = 1;
+ if (ctx->Light.ProvokingVertex == GL_FIRST_VERTEX_CONVENTION_EXT)
+ raster->flatshade_first = 1;
+
/* _NEW_LIGHT | _NEW_PROGRAM
*
* Back-face colors can come from traditional lighting (when