st: set pipe_rasterizer_state::flatshade_first according to provoking vertex state

This commit is contained in:
Brian Paul
2009-05-28 12:33:30 -06:00
parent f2f89b01d2
commit b631d5fbf4

View File

@@ -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