From 3761b5bdf6a2140d66431bc23e0386fb8d97a075 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 19 Jan 2017 02:34:35 +0100 Subject: [PATCH] Unroll video_driver_cached_frame_set --- gfx/video_driver.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gfx/video_driver.c b/gfx/video_driver.c index ed55a6f79c..50e6bc0126 100644 --- a/gfx/video_driver.c +++ b/gfx/video_driver.c @@ -2134,7 +2134,11 @@ void video_driver_frame(const void *data, unsigned width, performance_counter_stop(&video_frame_conv); - video_driver_cached_frame_set(data, width, height, pitch); + if (data) + frame_cache_data = data; + frame_cache_width = width; + frame_cache_height = height; + frame_cache_pitch = pitch; video_driver_build_info(&video_info);