update librw; render groups only if extension supported

This commit is contained in:
aap
2021-02-18 20:31:46 +01:00
parent 1402b9ed72
commit 6245a17e16
2 changed files with 5 additions and 3 deletions

View File

@ -118,6 +118,7 @@ void
PushRendergroup(const char *name)
{
#if defined(RW_OPENGL)
if(GLAD_GL_KHR_debug)
glPushDebugGroup(GL_DEBUG_SOURCE_APPLICATION, 0, -1, name);
#elif defined(RW_D3D9)
static WCHAR tmp[256];
@ -130,6 +131,7 @@ void
PopRendergroup(void)
{
#if defined(RW_OPENGL)
if(GLAD_GL_KHR_debug)
glPopDebugGroup();
#elif defined(RW_D3D9)
D3DPERF_EndEvent();

2
vendor/librw vendored