diff options
| author | JMC47 <JMC4789@gmail.com> | 2022-01-31 01:25:46 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-31 01:25:46 -0500 |
| commit | 4d1e6ff76a47ab8ac7417a7859c816467b4bfd04 (patch) | |
| tree | 4e1b8efcde4181deb80f769c8fecf39a016813f4 /Source/Core/VideoBackends/OGL/OGLTexture.cpp | |
| parent | 8e21495c59998be502aba6bc92a7f52967325b71 (diff) | |
| parent | 8be3572c8378967cac8774ee983e8e31a812efa3 (diff) | |
Merge pull request #10422 from OatmealDome/opengl-shader-crash
VideoConfig: Add flag for whether the system supports setting object names
Diffstat (limited to 'Source/Core/VideoBackends/OGL/OGLTexture.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/OGL/OGLTexture.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Core/VideoBackends/OGL/OGLTexture.cpp b/Source/Core/VideoBackends/OGL/OGLTexture.cpp index cf3c5f772b..113be2f1f4 100644 --- a/Source/Core/VideoBackends/OGL/OGLTexture.cpp +++ b/Source/Core/VideoBackends/OGL/OGLTexture.cpp @@ -9,6 +9,8 @@ #include "VideoBackends/OGL/SamplerCache.h" +#include "VideoCommon/VideoConfig.h" + namespace OGL { namespace @@ -116,7 +118,7 @@ OGLTexture::OGLTexture(const TextureConfig& tex_config, std::string_view name) glActiveTexture(GL_MUTABLE_TEXTURE_INDEX); glBindTexture(target, m_texId); - if (!m_name.empty()) + if (!m_name.empty() && g_ActiveConfig.backend_info.bSupportsSettingObjectNames) { glObjectLabel(GL_TEXTURE, m_texId, -1, m_name.c_str()); } |
