OGL: fix compute shader labels

This fixes GL_INVALID_VALUE errors when using GPU texture decoding.
This commit is contained in:
Tillmann Karras 2022-11-01 00:45:11 +00:00
parent 4955af5e27
commit 4b8fe959d4

View File

@ -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, -1, m_name.c_str());
}
}