diff --git a/src/command/commands.cpp b/src/command/commands.cpp index f7306e80..ace76190 100644 --- a/src/command/commands.cpp +++ b/src/command/commands.cpp @@ -302,6 +302,7 @@ void BarrierCmdBase::displayInspector(Gui& gui) const { BarrierCmdBase::PatchedBarriers BarrierCmdBase::patchedBarriers( ThreadMemScope& memScope, u32 qfam) const { PatchedBarriers ret; + ret.memBarriers = memBarriers; // need no patching ret.imgBarriers = memScope.copy(imgBarriers); ret.bufBarriers = memScope.copy(bufBarriers); diff --git a/src/command/commands.hpp b/src/command/commands.hpp index 810b46b0..336027d3 100644 --- a/src/command/commands.hpp +++ b/src/command/commands.hpp @@ -328,7 +328,7 @@ struct BarrierCmdBase : Command { // storing the patched versions) so we can still show the correct, // application-provided barriers in the UI. struct PatchedBarriers { - span memBarriers; + span memBarriers; span bufBarriers; span imgBarriers; };