mirror of
https://github.com/halpz/re3.git
synced 2025-07-22 23:19:43 +00:00
update librw; render groups only if extension supported
This commit is contained in:
@ -118,7 +118,8 @@ void
|
|||||||
PushRendergroup(const char *name)
|
PushRendergroup(const char *name)
|
||||||
{
|
{
|
||||||
#if defined(RW_OPENGL)
|
#if defined(RW_OPENGL)
|
||||||
glPushDebugGroup(GL_DEBUG_SOURCE_APPLICATION, 0, -1, name);
|
if(GLAD_GL_KHR_debug)
|
||||||
|
glPushDebugGroup(GL_DEBUG_SOURCE_APPLICATION, 0, -1, name);
|
||||||
#elif defined(RW_D3D9)
|
#elif defined(RW_D3D9)
|
||||||
static WCHAR tmp[256];
|
static WCHAR tmp[256];
|
||||||
MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, name, -1, tmp, sizeof(tmp));
|
MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, name, -1, tmp, sizeof(tmp));
|
||||||
@ -130,7 +131,8 @@ void
|
|||||||
PopRendergroup(void)
|
PopRendergroup(void)
|
||||||
{
|
{
|
||||||
#if defined(RW_OPENGL)
|
#if defined(RW_OPENGL)
|
||||||
glPopDebugGroup();
|
if(GLAD_GL_KHR_debug)
|
||||||
|
glPopDebugGroup();
|
||||||
#elif defined(RW_D3D9)
|
#elif defined(RW_D3D9)
|
||||||
D3DPERF_EndEvent();
|
D3DPERF_EndEvent();
|
||||||
#endif
|
#endif
|
||||||
|
2
vendor/librw
vendored
2
vendor/librw
vendored
Submodule vendor/librw updated: 65c619b3e7...cc550ff69c
Reference in New Issue
Block a user