We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d90297 commit b7ec2dbCopy full SHA for b7ec2db
PlugIns/GLSLang/src/OgreGLSLang.cpp
@@ -10,6 +10,7 @@
10
11
#include <glslang/Public/ShaderLang.h>
12
#include <glslang/SPIRV/GlslangToSpv.h>
13
+#include <glslang/build_info.h>
14
#include "gl_types.h"
15
16
namespace
@@ -457,7 +458,12 @@ void GLSLangProgram::prepareImpl()
457
458
}
459
460
461
+#if GLSLANG_VERSION_MAJOR < 14
462
+ auto utype = program.getUniformTType(i);
463
+#else
464
auto utype = (const TType*)program.getUniformTType(i);
465
+#endif
466
+
467
GpuConstantDefinition def;
468
def.logicalIndex = isUBO ? uoffset : utype->getQualifier().layoutLocation;
469
def.arraySize = program.getUniformArraySize(i);
0 commit comments