From bc74e7199bda369ab3d262a33b16baca39927bab Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 8 May 2016 19:18:17 +0200 Subject: [PATCH] Move variables outside of gfx_ctx_ctl --- gfx/video_context_driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gfx/video_context_driver.c b/gfx/video_context_driver.c index b009d8dea5..7a1ba6b3e4 100644 --- a/gfx/video_context_driver.c +++ b/gfx/video_context_driver.c @@ -85,6 +85,8 @@ static const gfx_ctx_driver_t *gfx_ctx_drivers[] = { NULL }; +static const gfx_ctx_driver_t *current_video_context = NULL; +static void *video_context_data = NULL; /** * find_gfx_ctx_driver_index: @@ -257,8 +259,6 @@ const gfx_ctx_driver_t *gfx_ctx_init_first(void *data, bool gfx_ctx_ctl(enum gfx_ctx_ctl_state state, void *data) { - static const gfx_ctx_driver_t *current_video_context = NULL; - static void *video_context_data = NULL; switch (state) {