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:
Nadia Pedersen 2018-01-02 07:41:02 +01:00 committed by GitHub
parent d62ff4eb75
commit e4fbece88f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)