Skip to content

Commit cd3ada7

Browse files
committed
Only pop a marker if we have an earlier push
1 parent 0c6389c commit cd3ada7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

source_common/trackers/queue.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,12 @@ namespace
7676
{
7777
UNUSED(instruction);
7878

79-
queueState.debugStack.pop_back();
79+
// Only pop if we have an earlier push - this shouldn't happen and
80+
// is a validation violation, but not all apps handle this correctly
81+
if (!queueState.debugStack.empty())
82+
{
83+
queueState.debugStack.pop_back();
84+
}
8085
}
8186

8287
/**

0 commit comments

Comments
 (0)