summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/OGL/OGLTexture.cpp
diff options
context:
space:
mode:
authorJMC47 <JMC4789@gmail.com>2022-11-01 02:18:37 -0400
committerGitHub <noreply@github.com>2022-11-01 02:18:37 -0400
commit5488d3b125dbec66ef4b35b124ce3c3c255b91fc (patch)
treef8a95300b0d219a3d7a2f6018bad2dcaa281fc08 /Source/Core/VideoBackends/OGL/OGLTexture.cpp
parent12b204d92a2a48b32c2016cfdaf7749235ce88a1 (diff)
parent22eb7e664516b61e7679844aa846459086154189 (diff)
Merge pull request #11239 from Tilka/ogl
OGL: fix compute shader labels
Diffstat (limited to 'Source/Core/VideoBackends/OGL/OGLTexture.cpp')
-rw-r--r--Source/Core/VideoBackends/OGL/OGLTexture.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoBackends/OGL/OGLTexture.cpp b/Source/Core/VideoBackends/OGL/OGLTexture.cpp
index 113be2f1f4..8c1b14cd08 100644
--- a/Source/Core/VideoBackends/OGL/OGLTexture.cpp
+++ b/Source/Core/VideoBackends/OGL/OGLTexture.cpp
@@ -120,7 +120,7 @@ OGLTexture::OGLTexture(const TextureConfig& tex_config, std::string_view name)
if (!m_name.empty() && g_ActiveConfig.backend_info.bSupportsSettingObjectNames)
{
- glObjectLabel(GL_TEXTURE, m_texId, -1, m_name.c_str());
+ glObjectLabel(GL_TEXTURE, m_texId, (GLsizei)m_name.size(), m_name.c_str());
}
glTexParameteri(target, GL_TEXTURE_MAX_LEVEL, m_config.levels - 1);