summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/OGL/OGLShader.cpp
diff options
context:
space:
mode:
authoriwubcode <iwubcode@users.noreply.github.com>2022-03-24 00:23:00 -0500
committeriwubcode <iwubcode@users.noreply.github.com>2022-03-24 00:25:59 -0500
commit69e79045a3010a2e6435ce371e3bef5efdd7f9ad (patch)
tree70ccbeba996d02fa175485ff50438b2017da5851 /Source/Core/VideoBackends/OGL/OGLShader.cpp
parent7b0d5f2df35537e460ad119d091699f3c52a0ca4 (diff)
VideoBackends: fix opengl object label which was given an invalid enumeration as the identifier parameter. Most implementations will warn in this case but there is an implementation that will crash (ANGLE)
Diffstat (limited to 'Source/Core/VideoBackends/OGL/OGLShader.cpp')
-rw-r--r--Source/Core/VideoBackends/OGL/OGLShader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoBackends/OGL/OGLShader.cpp b/Source/Core/VideoBackends/OGL/OGLShader.cpp
index 0327f083f4..f2b970d71b 100644
--- a/Source/Core/VideoBackends/OGL/OGLShader.cpp
+++ b/Source/Core/VideoBackends/OGL/OGLShader.cpp
@@ -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());
}
}