Merge pull request #10531 from iwubcode/opengl_objlabel_fix

VideoBackends: fix opengl object label identifier
This commit is contained in:
JosJuice 2022-03-24 18:02:32 +01:00 committed by GitHub
commit c8f4800fb2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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());
}
}
@ -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());
}
}