diff --git a/gfx/video_context_driver.c b/gfx/video_context_driver.c index 7bd19c904a..908bf8aa7e 100644 --- a/gfx/video_context_driver.c +++ b/gfx/video_context_driver.c @@ -46,9 +46,11 @@ static const gfx_ctx_driver_t *gfx_ctx_drivers[] = { #if defined(_WIN32) && defined(HAVE_OPENGL) &gfx_ctx_wgl, #endif -#if defined(HAVE_X11) && defined(HAVE_OPENGL) && !defined(HAVE_OPENGLES) +#if defined(HAVE_X11) && !defined(HAVE_OPENGLES) +#if defined(HAVE_OPENGL) || defined(HAVE_VULKAN) &gfx_ctx_x, #endif +#endif #if defined(HAVE_WAYLAND) &gfx_ctx_wayland, #endif