From 2bca74bbaa6e5eecc9a32b8f0d08c5804c118e65 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 14 Oct 2018 08:00:42 +0200 Subject: [PATCH] Fix this --- gfx/video_driver.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gfx/video_driver.c b/gfx/video_driver.c index 28055fe7d4..4a126070a9 100644 --- a/gfx/video_driver.c +++ b/gfx/video_driver.c @@ -3061,7 +3061,10 @@ const gfx_ctx_driver_t *video_context_driver_init_first(void *data, const gfx_ctx_driver_t *ctx = video_context_driver_init(data, gfx_ctx_drivers[i], ident, api, major, minor, hw_render_ctx, &ctx_data); if (ctx) + { video_context_data = ctx_data; + return ctx; + } } for (i = 0; gfx_ctx_drivers[i]; i++)