From a835149f6987ef1576380e7454c1c08246b61f5b Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 10 Jan 2017 19:48:19 +0100 Subject: [PATCH] (WGL) Buildfix --- gfx/drivers_context/wgl_ctx.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/gfx/drivers_context/wgl_ctx.cpp b/gfx/drivers_context/wgl_ctx.cpp index 6075f9cafc..342759ba37 100644 --- a/gfx/drivers_context/wgl_ctx.cpp +++ b/gfx/drivers_context/wgl_ctx.cpp @@ -559,12 +559,11 @@ error: static void gfx_ctx_wgl_input_driver(void *data, const input_driver_t **input, void **input_data) { - (void)data; + settings_t *settings = config_get_ptr(); + dinput_wgl = input_dinput.init(settings->input.joypad_driver); - dinput_wgl = input_dinput.init(); - - *input = dinput_wgl ? &input_dinput : NULL; - *input_data = dinput_wgl; + *input = dinput_wgl ? &input_dinput : NULL; + *input_data = dinput_wgl; } static bool gfx_ctx_wgl_has_focus(void *data)