Skip to content

Commit 62875fc

Browse files
committed
Fix TWD crash when variable rate shading is enabled
1 parent fcc38a3 commit 62875fc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/d3d11/d3d11_variable_rate_shading.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ namespace vrperfkit {
9191

9292
void D3D11VariableRateShading::PostOMSetRenderTargets(UINT numViews, ID3D11RenderTargetView * const *renderTargetViews,
9393
ID3D11DepthStencilView *depthStencilView) {
94-
if (!active || numViews == 0 || renderTargetViews[0] == nullptr || !g_config.ffr.enabled) {
94+
if (!active || numViews == 0 || renderTargetViews == nullptr || renderTargetViews[0] == nullptr || !g_config.ffr.enabled) {
9595
DisableVRS();
9696
return;
9797
}

0 commit comments

Comments
 (0)