diff --git a/gfx/drivers_context/wayland_ctx.c b/gfx/drivers_context/wayland_ctx.c index 58c6bac247..e996afd7e7 100644 --- a/gfx/drivers_context/wayland_ctx.c +++ b/gfx/drivers_context/wayland_ctx.c @@ -1687,9 +1687,11 @@ static bool gfx_ctx_wl_set_video_mode(void *data, return true; +#if defined(HAVE_EGL) || defined(HAVE_VULKAN) error: gfx_ctx_wl_destroy(data); return false; +#endif } bool input_wl_init(void *data, const char *joypad_name);