From 9ccf2b0f97cc6c39571a15c82a3f00bcbee748ba Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 12 Dec 2021 12:57:19 +0200 Subject: [PATCH] Fix render area Y coordinate calculation --- source/backends/vulkan/commands_backend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/backends/vulkan/commands_backend.cpp b/source/backends/vulkan/commands_backend.cpp index 8243b58f..643710d5 100644 --- a/source/backends/vulkan/commands_backend.cpp +++ b/source/backends/vulkan/commands_backend.cpp @@ -102,7 +102,7 @@ void VulkanCommands::begin_render_pass(bool clear, const ClearValue *clear_value if(viewport) { begin_info.renderArea.offset.x = viewport->left; - begin_info.renderArea.offset.y = viewport->bottom; + begin_info.renderArea.offset.y = framebuffer->get_height()-(viewport->bottom+viewport->height); begin_info.renderArea.extent.width = viewport->width; begin_info.renderArea.extent.height = viewport->height; } -- 2.45.2