Skip to content

Commit

Permalink
Fixes from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
kecho committed Jul 29, 2021
1 parent 53c199d commit 09ce4aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -502,9 +502,6 @@ public Vector2Int GetScaledSize(Vector2Int size)

Vector2Int scaledSize = ApplyScalesOnSize(size);

scaledSize.x = Math.Min(scaledSize.x, size.x);
scaledSize.y = Math.Min(scaledSize.y, size.y);

m_LastScaledSize = scaledSize;
return scaledSize;
}
Expand All @@ -530,6 +527,9 @@ internal Vector2Int ApplyScalesOnSize(Vector2Int size, Vector2 scales)
scaledSize.y += (1 & scaledSize.y);
}

scaledSize.x = Math.Min(scaledSize.x, size.x);
scaledSize.y = Math.Min(scaledSize.y, size.y);

return scaledSize;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,6 @@ private bool ShouldUseAutomaticSettings()

public void UpdateViewState(
in DlssViewData viewData,
/*uint backbufferWidth, uint backbufferHeight,*/
CommandBuffer cmdBuffer)
{
bool shouldUseOptimalSettings = ShouldUseAutomaticSettings();
Expand Down

0 comments on commit 09ce4aa

Please sign in to comment.