Skip to content

Commit

Permalink
Vulkan: Negative viewport position correction
Browse files Browse the repository at this point in the history
  • Loading branch information
sonninnos committed Sep 29, 2024
1 parent 1e1b24c commit 6eed8a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gfx/drivers/vulkan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6eed8a7

Please sign in to comment.