Skip to content

Commit

Permalink
Properly handle keep RTV/DSV requests.
Browse files Browse the repository at this point in the history
(cherry picked from commit 7fb5fd0)
  • Loading branch information
mbucchia committed Nov 3, 2022
1 parent cf5a2c6 commit e1b9a61
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion XR_APILAYER_NOVENDOR_toolkit/d3d11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2167,7 +2167,9 @@ void main(uint3 id : SV_DispatchThreadID)
ppUnorderedAccessViews,
pUAVInitialCounts);

g_instance->onSetRenderTargets(Context, NumRTVs, ppRenderTargetViews, pDepthStencilView);
if (NumRTVs != D3D11_KEEP_RENDER_TARGETS_AND_DEPTH_STENCIL) {
g_instance->onSetRenderTargets(Context, NumRTVs, ppRenderTargetViews, pDepthStencilView);
}

TraceLoggingWriteStop(local, "ID3D11DeviceContext_OMSetRenderTargetsAndUnorderedAccessViews");
}
Expand Down

0 comments on commit e1b9a61

Please sign in to comment.