mirror of https://github.com/bsnes-emu/bsnes.git
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.
This commit is contained in:
parent
d62ff4eb75
commit
e4fbece88f
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue