vulkan: correct scissor extent calculation

This commit is contained in:
niki
2024-04-09 18:04:54 +02:00
parent 869cb23314
commit 15c14c69b4
+2 -4
View File
@@ -1011,10 +1011,8 @@ void Graphics::setScissor()
scissor.extent = swapChainExtent; scissor.extent = swapChainExtent;
else else
{ {
double dpiScale = getCurrentDPIScale(); scissor.extent.width = renderPassState.width;
scissor.extent.height = renderPassState.height;
scissor.extent.width = static_cast<double>(renderPassState.width) * dpiScale;
scissor.extent.height = static_cast<double>(renderPassState.height) * dpiScale;
} }
vkCmdSetScissor(commandBuffers.at(currentFrame), 0, 1, &scissor); vkCmdSetScissor(commandBuffers.at(currentFrame), 0, 1, &scissor);