Fix OpenGL debug groups

pull/3236/head
AnyOldName3 3 months ago
parent e7a31373c9
commit 95a1183ad3

@ -239,7 +239,7 @@ namespace Debug
group->push(state);
lastAppliedStack.push_back(group);
}
if (!(lastAppliedStack.back() == this))
if (lastAppliedStack.empty() || !(lastAppliedStack.back() == this))
{
push(state);
lastAppliedStack.push_back(this);

Loading…
Cancel
Save