diff --git a/src/ShaderCache.cpp b/src/ShaderCache.cpp index 0d6945eca..21ad7b978 100644 --- a/src/ShaderCache.cpp +++ b/src/ShaderCache.cpp @@ -2020,8 +2020,9 @@ namespace SIE bool ShaderCache::AddCompletedShader(ShaderClass shaderClass, const RE::BSShader& shader, uint32_t descriptor, ID3DBlob* a_blob) { auto key = SIE::SShaderCache::GetShaderString(shaderClass, shader, descriptor, true); + auto keyWithDescriptor = SIE::SShaderCache::GetShaderString(shaderClass, shader, descriptor, false); auto status = a_blob ? ShaderCompilationTask::Status::Completed : ShaderCompilationTask::Status::Failed; - logger::debug("Adding {} shader to map: {}", magic_enum ::enum_name(status), key); + logger::debug("Adding {} shader to map: {}", magic_enum ::enum_name(status), keyWithDescriptor); { std::unique_lock lockM{ mapMutex }; shaderMap.insert_or_assign(key, ShaderCacheResult{ a_blob, status, system_clock::now() });