Merge pull request #8895 from orbea/glcore

Fix shaders init with glcore + kms.
This commit is contained in:
Twinaphex 2019-06-02 07:53:12 +02:00 committed by GitHub
commit fc149726c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -909,6 +909,11 @@ static uint32_t gfx_ctx_drm_get_flags(void *data)
if (drm->core_hw_context_enable) if (drm->core_hw_context_enable)
BIT32_SET(flags, GFX_CTX_FLAGS_GL_CORE_CONTEXT); BIT32_SET(flags, GFX_CTX_FLAGS_GL_CORE_CONTEXT);
if (string_is_equal(video_driver_get_ident(), "glcore"))
#ifdef HAVE_SLANG
BIT32_SET(flags, GFX_CTX_FLAGS_SHADERS_SLANG);
#endif
else
BIT32_SET(flags, GFX_CTX_FLAGS_SHADERS_GLSL); BIT32_SET(flags, GFX_CTX_FLAGS_SHADERS_GLSL);
return flags; return flags;