From a6f042b320d33e9767f3077ec5ee1325709e38aa Mon Sep 17 00:00:00 2001 From: LazyBumHorse Date: Sat, 1 Jun 2019 21:21:45 +0200 Subject: [PATCH] wgl_ctx: set GFX_CTX_FLAGS_SHADERS_SLANG for glcore --- gfx/drivers_context/wgl_ctx.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gfx/drivers_context/wgl_ctx.c b/gfx/drivers_context/wgl_ctx.c index 1eeb38e804..433d657710 100644 --- a/gfx/drivers_context/wgl_ctx.c +++ b/gfx/drivers_context/wgl_ctx.c @@ -816,7 +816,12 @@ static uint32_t gfx_ctx_wgl_get_flags(void *data) } if (string_is_equal(video_driver_get_ident(), "gl1")) { } - else if (string_is_equal(video_driver_get_ident(), "glcore")) { } + else if (string_is_equal(video_driver_get_ident(), "glcore")) + { +#ifdef HAVE_SLANG + BIT32_SET(flags, GFX_CTX_FLAGS_SHADERS_SLANG); +#endif + } else { #ifdef HAVE_CG