summaryrefslogtreecommitdiffstats
path: root/src/rw/RwHelper.cpp
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2021-02-19 18:41:31 +0100
committeraap <aap@papnet.eu>2021-02-19 18:41:31 +0100
commit9a7fa478578beaba947ea867c15a25e411d641d8 (patch)
treeb2dfe6308e7a3b60863012f54e3b57d208bea64f /src/rw/RwHelper.cpp
parentremove nightly (diff)
downloadre3-9a7fa478578beaba947ea867c15a25e411d641d8.tar
re3-9a7fa478578beaba947ea867c15a25e411d641d8.tar.gz
re3-9a7fa478578beaba947ea867c15a25e411d641d8.tar.bz2
re3-9a7fa478578beaba947ea867c15a25e411d641d8.tar.lz
re3-9a7fa478578beaba947ea867c15a25e411d641d8.tar.xz
re3-9a7fa478578beaba947ea867c15a25e411d641d8.tar.zst
re3-9a7fa478578beaba947ea867c15a25e411d641d8.zip
Diffstat (limited to '')
-rw-r--r--src/rw/RwHelper.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/rw/RwHelper.cpp b/src/rw/RwHelper.cpp
index 76749cb1..ef2d1c0f 100644
--- a/src/rw/RwHelper.cpp
+++ b/src/rw/RwHelper.cpp
@@ -11,6 +11,7 @@
#endif
#ifndef FINAL
RtCharset *debugCharset;
+bool bDebugRenderGroups;
#endif
#ifdef PS2_ALPHA_TEST
@@ -117,6 +118,8 @@ SetCullMode(uint32 mode)
void
PushRendergroup(const char *name)
{
+ if(!bDebugRenderGroups)
+ return;
#if defined(RW_OPENGL)
if(GLAD_GL_KHR_debug)
glPushDebugGroup(GL_DEBUG_SOURCE_APPLICATION, 0, -1, name);
@@ -130,6 +133,8 @@ PushRendergroup(const char *name)
void
PopRendergroup(void)
{
+ if(!bDebugRenderGroups)
+ return;
#if defined(RW_OPENGL)
if(GLAD_GL_KHR_debug)
glPopDebugGroup();