diff --git a/gfx/context/wgl_ctx.c b/gfx/context/wgl_ctx.c index e78d312c5b..f5788a46bd 100644 --- a/gfx/context/wgl_ctx.c +++ b/gfx/context/wgl_ctx.c @@ -563,8 +563,8 @@ static void gfx_ctx_input_driver(void *data, const input_driver_t **input, void { (void)data; dinput_wgl = input_dinput.init(); - *input = dinput ? &input_dinput : NULL; - *input_data = dinput; + *input = dinput_wgl ? &input_dinput : NULL; + *input_data = dinput_wgl; } static bool gfx_ctx_has_focus(void *data)