mirror of
https://github.com/libretro/glslang.git
synced 2024-12-15 04:00:05 +00:00
Merge pull request #134 from AWoloszyn/glslangvalidator-memory
Freed up some command line memory (not used programmatically).
This commit is contained in:
commit
5996961bd1
@ -435,6 +435,8 @@ void ProcessConfigFile()
|
||||
}
|
||||
if (configStrings)
|
||||
FreeFileData(configStrings);
|
||||
else
|
||||
delete[] config;
|
||||
}
|
||||
|
||||
// thread-safe list of shaders to asynchronously grab and compile
|
||||
@ -863,6 +865,11 @@ int C_DECL main(int argc, char* argv[])
|
||||
glslang::InitializeProcess();
|
||||
CompileAndLinkShaderFiles();
|
||||
glslang::FinalizeProcess();
|
||||
for (int w = 0; w < NumWorkItems; ++w) {
|
||||
if (Work[w]) {
|
||||
delete Work[w];
|
||||
}
|
||||
}
|
||||
} else {
|
||||
ShInitialize();
|
||||
|
||||
@ -895,6 +902,8 @@ int C_DECL main(int argc, char* argv[])
|
||||
ShFinalize();
|
||||
}
|
||||
|
||||
delete[] Work;
|
||||
|
||||
if (CompileFailed)
|
||||
return EFailCompile;
|
||||
if (LinkFailed)
|
||||
|
Loading…
Reference in New Issue
Block a user