Module: wine Branch: master Commit: 696515d8d4d322f6bfbb1b7ca8015cbd02dde041 URL: https://gitlab.winehq.org/wine/wine/-/commit/696515d8d4d322f6bfbb1b7ca8015cb...
Author: Conor McCarthy cmccarthy@codeweavers.com Date: Fri Jan 13 14:36:31 2023 +1000
d3d11: Apply the 'KEEP' options when sending RTVs and UAVs to wined3d.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=53761
---
dlls/d3d11/device.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/d3d11/device.c b/dlls/d3d11/device.c index 65706a414d8..5cb84c59dee 100644 --- a/dlls/d3d11/device.c +++ b/dlls/d3d11/device.c @@ -1156,8 +1156,9 @@ static void STDMETHODCALLTYPE d3d11_device_context_OMSetRenderTargetsAndUnordere } }
- wined3d_device_context_set_render_targets_and_unordered_access_views(context->wined3d_context, ARRAY_SIZE(wined3d_rtvs), - wined3d_rtvs, dsv ? dsv->wined3d_view : NULL, ARRAY_SIZE(wined3d_uavs), wined3d_uavs, + wined3d_device_context_set_render_targets_and_unordered_access_views(context->wined3d_context, + render_target_view_count == ~0u ? ~0u : ARRAY_SIZE(wined3d_rtvs), wined3d_rtvs, + dsv ? dsv->wined3d_view : NULL, uav_count == ~0u ? ~0u : ARRAY_SIZE(wined3d_uavs), wined3d_uavs, wined3d_initial_counts); }