From 137757d832eb8325d2f03b7218ba483d4141b31a Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 6 Dec 2015 21:58:12 +0100 Subject: [PATCH] gfx/video_texture_c.c - add HAVE_THREADS ifdef --- gfx/video_texture_c.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gfx/video_texture_c.c b/gfx/video_texture_c.c index b1733c714f..6162ce60fe 100644 --- a/gfx/video_texture_c.c +++ b/gfx/video_texture_c.c @@ -194,6 +194,7 @@ unsigned video_texture_load(void *data, const struct retro_hw_render_callback *hw_render = (const struct retro_hw_render_callback*)video_driver_callback(); +#ifdef HAVE_THREADS if (settings->video.threaded && !hw_render->context_type) { thread_video_t *thr = (thread_video_t*)video_driver_get_ptr(true); @@ -230,6 +231,7 @@ unsigned video_texture_load(void *data, return pkt.data.custom_command.return_value; } +#endif return video_texture_png_load(data, type, filter_type); }