Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #10531 from iwubcode/opengl_objlabel_fix
VideoBackends: fix opengl object label identifier
  • Loading branch information
JosJuice committed Mar 24, 2022
2 parents 1a5a52c + 69e7904 commit c8f4800
Showing 1 changed file with 2 additions and 2 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(GetGLShaderTypeForStage(stage), m_gl_id, -1, m_name.c_str());
glObjectLabel(GL_SHADER, m_gl_id, -1, 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_COMPUTE_SHADER, m_gl_compute_program_id, -1, m_name.c_str());
glObjectLabel(GL_SHADER, m_gl_compute_program_id, -1, m_name.c_str());
}
}

Expand Down

0 comments on commit c8f4800

Please sign in to comment.