mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
[Coverity] Fix mistaken logic resetting flag before check
This commit is contained in:
@@ -177,9 +177,9 @@ static void ConvertToMeshOutputCompute(const ShaderReflection &refl, const SPIRV
|
||||
auto replIt = typeReplacements.find(it.word(1));
|
||||
if(replIt != typeReplacements.end())
|
||||
{
|
||||
mod = true;
|
||||
if(!mod)
|
||||
editor.PreModify(it);
|
||||
mod = true;
|
||||
it.word(1) = typeReplacements[it.word(1)];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user