Skip to content

Commit

Permalink
vulkan: correct scissor extent calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
nikeinikei committed Apr 9, 2024
1 parent 869cb23 commit 15c14c6
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/modules/graphics/vulkan/Graphics.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1011,10 +1011,8 @@ void Graphics::setScissor()
scissor.extent = swapChainExtent;
else
{
double dpiScale = getCurrentDPIScale();

scissor.extent.width = static_cast<double>(renderPassState.width) * dpiScale;
scissor.extent.height = static_cast<double>(renderPassState.height) * dpiScale;
scissor.extent.width = renderPassState.width;
scissor.extent.height = renderPassState.height;
}

vkCmdSetScissor(commandBuffers.at(currentFrame), 0, 1, &scissor);
Expand Down

0 comments on commit 15c14c6

Please sign in to comment.