mirror of
https://github.com/libretro/RetroArch
synced 2025-03-12 22:14:30 +00:00
Vulkan: Negative viewport position correction (#17063)
This commit is contained in:
parent
1e1b24c359
commit
1cc2210185
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user