Browse Source

vulkan: correct scissor extent calculation

niki 1 year ago
parent
commit
15c14c69b4
1 changed files with 2 additions and 4 deletions
  1. 2 4
      src/modules/graphics/vulkan/Graphics.cpp

+ 2 - 4
src/modules/graphics/vulkan/Graphics.cpp

@@ -1011,10 +1011,8 @@ void Graphics::setScissor()
 			scissor.extent = swapChainExtent;
 			scissor.extent = swapChainExtent;
 		else
 		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);
 		vkCmdSetScissor(commandBuffers.at(currentFrame), 0, 1, &scissor);