mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-05-07 13:37:46 +00:00
gl: Fix crash when renderdoc compatibility is enabled on some hardware
This commit is contained in:
parent
3574677b66
commit
a60734e27b
1 changed files with 4 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue