d3d1x: set flatshade_first in rasterizer state

D3D10 specifies the first vertex as the leading/provoking one.
This commit is contained in:
Christoph Bumiller 2011-09-17 11:58:05 +02:00
parent e27d72d6c3
commit 4a06248281
2 changed files with 2 additions and 0 deletions

View file

@ -200,6 +200,7 @@ struct GalliumD3D10Device : public GalliumD3D10ScreenImpl<threadsafe>
memset(&rasterizerd, 0, sizeof(rasterizerd));
rasterizerd.gl_rasterization_rules = 1;
rasterizerd.cull_face = PIPE_FACE_BACK;
rasterizerd.flatshade_first = 1;
rasterizerd.line_width = 1.0f;
rasterizerd.point_size = 1.0f;
default_rasterizer = pipe->create_rasterizer_state(pipe, &rasterizerd);

View file

@ -512,6 +512,7 @@ struct GalliumD3D11ScreenImpl : public GalliumD3D11Screen
state.scissor = !!rasterizer_desc->ScissorEnable;
state.multisample = !!rasterizer_desc->MultisampleEnable;
state.line_smooth = !!rasterizer_desc->AntialiasedLineEnable;
state.flatshade_first = 1;
state.line_width = 1.0f;
state.point_size = 1.0f;