diff options
author | Christoph Bumiller <[email protected]> | 2011-09-17 12:07:42 +0200 |
---|---|---|
committer | Christoph Bumiller <[email protected]> | 2011-09-17 12:07:42 +0200 |
commit | e27d72d6c3ca3512bfea524b8a7b007960841057 (patch) | |
tree | 680c07ffb14e2566e5e28595b8f62bc0f08c4555 /src/gallium | |
parent | e945fb04d04c33da5e77d22d739c5740a522a61e (diff) |
d3d1x: initialize point size and line width to 1
Otherwise lines would never be visible since the width cannot be
specified in D3D10.
Wireframe mode is also affected by line width.
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/state_trackers/d3d1x/gd3d11/d3d11_context.h | 2 | ||||
-rw-r--r-- | src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_context.h b/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_context.h index 0a31cf10a34..1b642db0168 100644 --- a/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_context.h +++ b/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_context.h @@ -200,6 +200,8 @@ struct GalliumD3D10Device : public GalliumD3D10ScreenImpl<threadsafe> memset(&rasterizerd, 0, sizeof(rasterizerd)); rasterizerd.gl_rasterization_rules = 1; rasterizerd.cull_face = PIPE_FACE_BACK; + rasterizerd.line_width = 1.0f; + rasterizerd.point_size = 1.0f; default_rasterizer = pipe->create_rasterizer_state(pipe, &rasterizerd); struct pipe_depth_stencil_alpha_state depth_stencild; diff --git a/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h b/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h index f678ac7f733..e824d3f6c92 100644 --- a/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h +++ b/src/gallium/state_trackers/d3d1x/gd3d11/d3d11_screen.h @@ -512,6 +512,8 @@ struct GalliumD3D11ScreenImpl : public GalliumD3D11Screen state.scissor = !!rasterizer_desc->ScissorEnable; state.multisample = !!rasterizer_desc->MultisampleEnable; state.line_smooth = !!rasterizer_desc->AntialiasedLineEnable; + state.line_width = 1.0f; + state.point_size = 1.0f; /* TODO: is this correct? */ state.point_quad_rasterization = 1; |