From 95a1183ad36c8547f904c65eedee933192c8fcfa Mon Sep 17 00:00:00 2001 From: AnyOldName3 Date: Wed, 25 Sep 2024 16:10:18 +0100 Subject: [PATCH] Fix OpenGL debug groups --- components/debug/gldebug.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/debug/gldebug.cpp b/components/debug/gldebug.cpp index 29036af162..482755b761 100644 --- a/components/debug/gldebug.cpp +++ b/components/debug/gldebug.cpp @@ -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);