This commit is contained in:
parent
c45dddae5f
commit
7f349c73db
16 changed files with 88 additions and 46 deletions
|
|
@ -107,7 +107,7 @@ std::pair<bool, std::string> ReadFile(const std::string& path)
|
|||
if (fstream) {
|
||||
std::string contents;
|
||||
fstream.seekg(0, std::ios::end);
|
||||
contents.reserve(fstream.tellg());
|
||||
contents.reserve((std::string::size_type)fstream.tellg());
|
||||
fstream.seekg(0, std::ios::beg);
|
||||
contents.assign((std::istreambuf_iterator<char>(fstream)),
|
||||
std::istreambuf_iterator<char>());
|
||||
|
|
|
|||
|
|
@ -180,8 +180,7 @@ public:
|
|||
shader->setStringsWithLengths(&shaderStrings, &shaderLengths, 1);
|
||||
if (!entryPointName.empty()) shader->setEntryPoint(entryPointName.c_str());
|
||||
// Reinitialize glslang if the semantics change.
|
||||
GlslangInitializer::InitializationToken token =
|
||||
GlobalTestSettings.initializer->acquire(controls);
|
||||
GlobalTestSettings.initializer->acquire(controls);
|
||||
return shader->parse(
|
||||
(resources ? resources : &glslang::DefaultTBuiltInResource),
|
||||
defaultVersion, isForwardCompatible, controls);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue