gl: Fix crash when renderdoc compatibility is enabled on some hardware
This commit is contained in:
@@ -99,7 +99,10 @@ namespace gl
|
|||||||
// Very useful util when capturing traces with RenderDoc
|
// Very useful util when capturing traces with RenderDoc
|
||||||
static inline void push_debug_label(std::string_view label)
|
static inline void push_debug_label(std::string_view label)
|
||||||
{
|
{
|
||||||
glInsertEventMarkerEXT(static_cast<GLsizei>(label.size()), label.data());
|
if (glInsertEventMarkerEXT)
|
||||||
|
{
|
||||||
|
glInsertEventMarkerEXT(static_cast<GLsizei>(label.size()), label.data());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Checks if GL state is still valid
|
// Checks if GL state is still valid
|
||||||
|
|||||||
Reference in New Issue
Block a user