summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineOpenGL
diff options
context:
space:
mode:
authorMark Nefedov <mark_nefedov@outlook.com>2020-05-08 20:30:39 +0000
committerGitHub <noreply@github.com>2020-05-08 20:30:39 +0000
commit2b3eb759e13316e195ff867bcc1b50ec7f3e4c40 (patch)
treeda509287fbcba6644d74abf1859a674820b37185 /Graphics/GraphicsEngineOpenGL
parentChecks can be simplified "(A && B) || (!A && !B) same A == B", fiters => filt... (diff)
downloadDiligentCore-2b3eb759e13316e195ff867bcc1b50ec7f3e4c40.tar.gz
DiligentCore-2b3eb759e13316e195ff867bcc1b50ec7f3e4c40.zip
Update FBOCache.cpp
Reverting change.
Diffstat (limited to 'Graphics/GraphicsEngineOpenGL')
-rw-r--r--Graphics/GraphicsEngineOpenGL/src/FBOCache.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngineOpenGL/src/FBOCache.cpp b/Graphics/GraphicsEngineOpenGL/src/FBOCache.cpp
index 5fe2af2c..5d18a955 100644
--- a/Graphics/GraphicsEngineOpenGL/src/FBOCache.cpp
+++ b/Graphics/GraphicsEngineOpenGL/src/FBOCache.cpp
@@ -67,6 +67,7 @@ std::size_t FBOCache::FBOCacheKeyHashFunc::operator()(const FBOCacheKey& Key) co
if (Key.Hash == 0)
{
std::hash<TextureViewDesc> TexViewDescHasher;
+ Key.Hash = 0;
HashCombine(Key.Hash, Key.NumRenderTargets);
for (Uint32 rt = 0; rt < Key.NumRenderTargets; ++rt)
{