mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-04 13:50:59 +00:00
Fix a bug with variables in loop coming into existence multiple times
This commit is contained in:
@@ -345,6 +345,8 @@ void ThreadState::SetDst(Id id, const ShaderVariable &val)
|
||||
if(m_State && ContainsNaNInf(val))
|
||||
m_State->flags |= ShaderEvents::GeneratedNanOrInf;
|
||||
|
||||
ShaderVariable prev = ids[id];
|
||||
|
||||
ids[id] = val;
|
||||
ids[id].name = GetRawName(id);
|
||||
|
||||
@@ -366,6 +368,7 @@ void ThreadState::SetDst(Id id, const ShaderVariable &val)
|
||||
if(m_State)
|
||||
{
|
||||
ShaderVariableChange change;
|
||||
change.before = prev;
|
||||
change.after = debugger.GetPointerValue(ids[id]);
|
||||
m_State->changes.push_back(change);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user