Skip to content

Commit 1c36b64

Browse files
committed
v1.0.7
1 parent ea76456 commit 1c36b64

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ShaderGC/ShaderCache.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ const CachedShader* ShaderCache::FindCachedShader(const std::string& source) con
3131

3232
for(const auto& cs : m_cachedShaders)
3333
{
34-
if(cs.hash[0] == hash[0] && cs.hash[1] == hash[1] && cs.hash[2] == hash[2] && cs.hash[3] == hash[3] && cs.hash[4] == hash[4] && cs.hash[5] == hash[5] &&
35-
cs.hash[6] == hash[6] && cs.hash[7] == hash[7])
34+
if(cs.hash != nullptr && cs.hash[0] == hash[0] && cs.hash[1] == hash[1] && cs.hash[2] == hash[2] && cs.hash[3] == hash[3] && cs.hash[4] == hash[4] &&
35+
cs.hash[5] == hash[5] && cs.hash[6] == hash[6] && cs.hash[7] == hash[7])
3636
return &cs;
3737
}
3838
return nullptr;

ShaderGlass/ShaderGlass.rc

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)