On Thu, 18 Mar 2021 at 01:45, Zebediah Figura z.figura12@gmail.com wrote:
@@ -2621,10 +2622,10 @@ static void STDMETHODCALLTYPE d3d11_immediate_context_ClearState(ID3D11DeviceCon wined3d_device_set_rendertarget_view(device->wined3d_device, i, NULL, FALSE); } wined3d_device_set_depth_stencil_view(device->wined3d_device, NULL);
- for (i = 0; i < D3D11_PS_CS_UAV_REGISTER_COUNT; ++i)
- for (i = 0; i < WINED3D_PIPELINE_COUNT; ++i) {
wined3d_device_set_unordered_access_view(device->wined3d_device, i, NULL, ~0u);
wined3d_device_set_cs_uav(device->wined3d_device, i, NULL, ~0u);
for (j = 0; j < D3D11_PS_CS_UAV_REGISTER_COUNT; ++j)
wined3d_device_context_set_unordered_access_view(context->wined3d_context, i, j, NULL, ~0u);
Note that there's another instance of wined3d_device_set_cs_uav() in d3d11_immediate_context_CSSetUnorderedAccessViews().