mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-29 00:50:23 +01:00
d3d1x: set flatshade_first in rasterizer state
D3D10 specifies the first vertex as the leading/provoking one.
This commit is contained in:
parent
e27d72d6c3
commit
4a06248281
2 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue