Skip to content

Commit 2d42263

Browse files
committed
no need to use InitializeGlslang/FinalizeGlslang as already been called by TestingEnvironmentVk.
1 parent e8addd9 commit 2d42263

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Tests/DiligentCoreTest/src/ShaderTools/SPIRVShaderResourcesTest.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,7 @@ std::vector<unsigned int> LoadSPIRVFromHLSL(const char* FilePath, SHADER_TYPE Sh
7373

7474
ShaderCI.pShaderSourceStreamFactory = pShaderSourceStreamFactory;
7575

76-
GLSLangUtils::InitializeGlslang();
7776
SPIRV = GLSLangUtils::HLSLtoSPIRV(ShaderCI, GLSLangUtils::SpirvVersion::Vk100, nullptr, nullptr);
78-
GLSLangUtils::FinalizeGlslang();
7977

8078
#endif
8179

@@ -125,9 +123,7 @@ std::vector<unsigned int> LoadSPIRVFromGLSL(const char* FilePath, SHADER_TYPE Sh
125123
Attribs.Version = Version;
126124
Attribs.AssignBindings = true;
127125

128-
GLSLangUtils::InitializeGlslang();
129126
SPIRV = GLSLangUtils::GLSLtoSPIRV(Attribs);
130-
GLSLangUtils::FinalizeGlslang();
131127

132128
#endif
133129
return SPIRV;

0 commit comments

Comments
 (0)