Skip to content

Commit

Permalink
Fix TWD crash when variable rate shading is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
fholger committed Jan 16, 2022
1 parent fcc38a3 commit 62875fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/d3d11/d3d11_variable_rate_shading.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ namespace vrperfkit {

void D3D11VariableRateShading::PostOMSetRenderTargets(UINT numViews, ID3D11RenderTargetView * const *renderTargetViews,
ID3D11DepthStencilView *depthStencilView) {
if (!active || numViews == 0 || renderTargetViews[0] == nullptr || !g_config.ffr.enabled) {
if (!active || numViews == 0 || renderTargetViews == nullptr || renderTargetViews[0] == nullptr || !g_config.ffr.enabled) {
DisableVRS();
return;
}
Expand Down

0 comments on commit 62875fc

Please sign in to comment.