Skip to content

Commit

Permalink
GLSLang: isSupported - correctly consider capabilites
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed Aug 4, 2024
1 parent fc0621d commit ef45b52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion PlugIns/GLSLang/src/OgreGLSLang.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ef45b52

Please sign in to comment.