mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-04-29 23:41:12 -06:00
gl: Fix crash when renderdoc compatibility is enabled on some hardware
This commit is contained in:
parent
3574677b66
commit
a60734e27b
@ -99,7 +99,10 @@ namespace gl
|
||||
// Very useful util when capturing traces with RenderDoc
|
||||
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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user