Skip to content

Commit 997f6f3

Browse files
author
devsh
committed
looking in empty cache was borken
1 parent 1edbc38 commit 997f6f3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/nbl/asset/utils/IShaderCompiler.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,7 @@ IShaderCompiler::CCache::EntrySet::const_iterator IShaderCompiler::CCache::find_
272272
{
273273
auto found = m_container.find(mainFile);
274274
// go through all dependencies
275+
if (found!=m_container.end())
275276
for (auto i = 0; i < found->dependencies.size(); i++)
276277
{
277278
const auto& dependency = found->dependencies[i];

0 commit comments

Comments
 (0)