From e4fbece88fb382caaee60fa3bbaa3fc7a3b10101 Mon Sep 17 00:00:00 2001 From: Nadia Pedersen Date: Tue, 2 Jan 2018 07:41:02 +0100 Subject: [PATCH] libretro: Fix video being broken with Vulkan This corrects the pitch parameter for the video refresh callback to be the actual pitch instead of 0. Setting it to 0 seems to work fine for OpenGL, but it causes the graphics to be broken with Vulkan, at least with an AMD card on Linux. --- libretro/libretro.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libretro/libretro.c b/libretro/libretro.c index fefb3164..b21010e5 100644 --- a/libretro/libretro.c +++ b/libretro/libretro.c @@ -284,7 +284,7 @@ void retro_run(void) else frames = 0; - video_cb(frame_buf, VIDEO_WIDTH, VIDEO_HEIGHT, 0); + video_cb(frame_buf, VIDEO_WIDTH, VIDEO_HEIGHT, VIDEO_WIDTH * sizeof(uint32_t)); } bool retro_load_game(const struct retro_game_info *info)