Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #11239 from Tilka/ogl
OGL: fix compute shader labels
  • Loading branch information
JMC47 committed Nov 1, 2022
2 parents 12b204d + 22eb7e6 commit 5488d3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Source/Core/VideoBackends/OGL/OGLShader.cpp
Expand Up @@ -33,7 +33,7 @@ OGLShader::OGLShader(ShaderStage stage, GLenum gl_type, GLuint gl_id, std::strin
{
if (!m_name.empty() && g_ActiveConfig.backend_info.bSupportsSettingObjectNames)
{
glObjectLabel(GL_SHADER, m_gl_id, -1, m_name.c_str());
glObjectLabel(GL_SHADER, m_gl_id, (GLsizei)m_name.size(), m_name.c_str());
}
}

Expand All @@ -44,7 +44,7 @@ OGLShader::OGLShader(GLuint gl_compute_program_id, std::string source, std::stri
{
if (!m_name.empty() && g_ActiveConfig.backend_info.bSupportsSettingObjectNames)
{
glObjectLabel(GL_SHADER, m_gl_compute_program_id, -1, m_name.c_str());
glObjectLabel(GL_PROGRAM, m_gl_compute_program_id, (GLsizei)m_name.size(), m_name.c_str());
}
}

Expand Down
2 changes: 1 addition & 1 deletion Source/Core/VideoBackends/OGL/OGLTexture.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 5488d3b

Please sign in to comment.