1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-29 17:45:34 +00:00

Fix OpenGL debug groups

This commit is contained in:
AnyOldName3 2024-09-25 16:10:18 +01:00
parent e7a31373c9
commit 95a1183ad3

View file

@ -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);