[PATCH 11/11] d3d11: Introduce a function to convert D3D11 cull modes to wined3d.

Chip Davis cdavis at codeweavers.com
Fri Apr 3 11:06:05 CDT 2020


Signed-off-by: Chip Davis <cdavis at codeweavers.com>
---
 dlls/d3d11/state.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/dlls/d3d11/state.c b/dlls/d3d11/state.c
index 6eb6e6ad6d0..32ef44091c4 100644
--- a/dlls/d3d11/state.c
+++ b/dlls/d3d11/state.c
@@ -1086,6 +1086,11 @@ static enum wined3d_fill_mode wined3d_fill_mode_from_d3d11(D3D11_FILL_MODE mode)
     return (enum wined3d_fill_mode)mode;
 }
 
+static enum wined3d_cull wined3d_cull_from_d3d11(D3D11_CULL_MODE mode)
+{
+    return (enum wined3d_cull)mode;
+}
+
 static HRESULT d3d_rasterizer_state_init(struct d3d_rasterizer_state *state, struct d3d_device *device,
         const D3D11_RASTERIZER_DESC *desc)
 {
@@ -1106,7 +1111,7 @@ static HRESULT d3d_rasterizer_state_init(struct d3d_rasterizer_state *state, str
     }
 
     wined3d_desc.fill_mode = wined3d_fill_mode_from_d3d11(desc->FillMode);
-    wined3d_desc.cull_mode = desc->CullMode;
+    wined3d_desc.cull_mode = wined3d_cull_from_d3d11(desc->CullMode);
     wined3d_desc.front_ccw = desc->FrontCounterClockwise;
     wined3d_desc.depth_bias = desc->DepthBias;
     wined3d_desc.depth_bias_clamp = desc->DepthBiasClamp;
-- 
2.24.0




More information about the wine-devel mailing list