From 1c1ca45e4e89d6c621d4c303a5c0c574842d354f Mon Sep 17 00:00:00 2001 From: Albert Liu <45282415+ggrtk@users.noreply.github.com> Date: Mon, 28 Dec 2020 23:42:20 -0800 Subject: [PATCH] VulkanHostDisplay: Fix post shader uniform buffer --- src/frontend-common/vulkan_host_display.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend-common/vulkan_host_display.cpp b/src/frontend-common/vulkan_host_display.cpp index 374b8a81c..da493d6d1 100644 --- a/src/frontend-common/vulkan_host_display.cpp +++ b/src/frontend-common/vulkan_host_display.cpp @@ -1006,7 +1006,7 @@ void VulkanHostDisplay::ApplyPostProcessingChain(s32 final_left, s32 final_top, Assert(pps.uniforms_size <= sizeof(buffer)); m_post_processing_chain.GetShaderStage(i).FillUniformBuffer( buffer, texture_width, texture_height, texture_view_x, texture_view_y, texture_view_width, texture_view_height, - texture_width, texture_width, 0.0f); + GetWindowWidth(), GetWindowHeight(), 0.0f); vkCmdPushConstants(cmdbuffer, m_post_process_pipeline_layout, VK_SHADER_STAGE_VERTEX_BIT | VK_SHADER_STAGE_FRAGMENT_BIT, 0, pps.uniforms_size, buffer);