mirror of
https://github.com/love2d/love.git
synced 2026-08-19 12:14:20 +02:00
vulkan: correct scissor extent calculation
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user