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 43bd898Copy full SHA for 43bd898
PlugIns/GLSLang/src/OgreGLSLang.cpp
@@ -10,6 +10,11 @@
10
11
#include <glslang/Public/ShaderLang.h>
12
#include <glslang/SPIRV/GlslangToSpv.h>
13
+#ifndef GLSLANG_MINOR_VERSION
14
+#include <glslang/build_info.h>
15
+#else
16
+#define GLSLANG_VERSION_MAJOR 11
17
+#endif
18
#include "gl_types.h"
19
20
namespace
@@ -457,7 +462,12 @@ void GLSLangProgram::prepareImpl()
457
462
}
458
463
459
464
465
+#if GLSLANG_VERSION_MAJOR < 14
466
+ auto utype = program.getUniformTType(i);
467
460
468
auto utype = (const TType*)program.getUniformTType(i);
469
470
+
461
471
GpuConstantDefinition def;
472
def.logicalIndex = isUBO ? uoffset : utype->getQualifier().layoutLocation;
473
def.arraySize = program.getUniformArraySize(i);
0 commit comments