Vulkan: Negative viewport position correction (#17063)

This commit is contained in:
sonninnos 2024-09-29 21:12:12 +03:00 committed by GitHub
parent 1e1b24c359
commit 1cc2210185
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3862,14 +3862,14 @@ static void vulkan_set_viewport(void *data, unsigned viewport_width,
if (vk->vp.x < 0)
{
vk->translate_x = (float)vk->vp.x;
vk->translate_x = (float)vk->vp.x * 2;
vk->vp.x = 0.0;
}
else
vk->translate_x = 0.0;
if (vk->vp.y < 0)
{
vk->translate_y = (float)vk->vp.y;
vk->translate_y = (float)vk->vp.y * 2;
vk->vp.y = 0.0;
}
else