mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-24 09:39:51 +00:00
Removed weird lines that I thought were necessary to please the compiler
This commit is contained in:
parent
68d0698924
commit
b6d7293a12
@ -381,18 +381,7 @@ namespace Shader
|
||||
{
|
||||
for (const std::filesystem::path& file : shaderFiles)
|
||||
{
|
||||
KeysHolder* shaderSet_ptr;
|
||||
auto found = mShaderFiles.find(file.string());
|
||||
if (found != mShaderFiles.end()) //Apparently there is an issue that prevents me from using operator[]
|
||||
{
|
||||
shaderSet_ptr = &found->second;
|
||||
}
|
||||
else
|
||||
{
|
||||
shaderSet_ptr = &mShaderFiles.insert(std::make_pair<>(file.string(), KeysHolder())).first->second;
|
||||
}
|
||||
auto& shaderSet = *shaderSet_ptr;
|
||||
shaderSet.insert(std::make_pair( templateName, defines ));
|
||||
mShaderFiles[file.string()].insert(std::make_pair(templateName, defines));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user