From: Mikko Rasa Date: Sun, 12 Dec 2021 10:57:19 +0000 (+0200) Subject: Fix render area Y coordinate calculation X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=9ccf2b0f97cc6c39571a15c82a3f00bcbee748ba;p=libs%2Fgl.git Fix render area Y coordinate calculation --- 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; }