From ef45b52383deae895c0f13a81a3ac4b727c7a57f Mon Sep 17 00:00:00 2001 From: Pavel Rojtberg Date: Sat, 3 Aug 2024 20:04:35 +0200 Subject: [PATCH] GLSLang: isSupported - correctly consider capabilites --- PlugIns/GLSLang/src/OgreGLSLang.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PlugIns/GLSLang/src/OgreGLSLang.cpp b/PlugIns/GLSLang/src/OgreGLSLang.cpp index 70c3fdcf82a..2adcc64bba6 100644 --- a/PlugIns/GLSLang/src/OgreGLSLang.cpp +++ b/PlugIns/GLSLang/src/OgreGLSLang.cpp @@ -345,7 +345,7 @@ const String& GLSLangProgram::getLanguage(void) const } bool GLSLangProgram::isSupported() const -{ bool ret = !mCompileError; +{ bool ret = !mCompileError && isRequiredCapabilitiesSupported(); if(mSyntaxCode != "glslang") // in case this is provided by user ret = ret && GpuProgramManager::isSyntaxSupported(mSyntaxCode); return ret;