Detect RenderDoc presence when it's injected.

This commit is contained in:
Branimir Karadžić
2015-05-08 11:49:18 -07:00
parent 916693c29b
commit 1aea6fc415
2 changed files with 17 additions and 2 deletions

View File

@@ -429,6 +429,7 @@ namespace bgfx { namespace gl
EXT_compressed_ETC1_RGB8_sub_texture,
EXT_debug_label,
EXT_debug_marker,
EXT_debug_tool,
EXT_discard_framebuffer,
EXT_disjoint_timer_query,
EXT_draw_buffers,
@@ -621,6 +622,7 @@ namespace bgfx { namespace gl
{ "EXT_compressed_ETC1_RGB8_sub_texture", false, true }, // GLES2 extension.
{ "EXT_debug_label", false, true },
{ "EXT_debug_marker", false, true },
{ "EXT_debug_tool", false, true }, // RenderDoc extension.
{ "EXT_discard_framebuffer", false, true }, // GLES2 extension.
{ "EXT_disjoint_timer_query", false, true }, // GLES2 extension.
{ "EXT_draw_buffers", false, true }, // GLES2 extension.
@@ -1621,6 +1623,8 @@ namespace bgfx { namespace gl
;
}
setGraphicsDebuggerPresent(s_extension[Extension::EXT_debug_tool].m_supported);
if (NULL == glObjectLabel)
{
glObjectLabel = stubObjectLabel;