summaryrefslogtreecommitdiff
path: root/Source/Core/VideoBackends/OGL/OGLShader.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-03-16 17:44:20 -0400
committerLioncash <mathew1800@gmail.com>2018-03-16 17:44:23 -0400
commit83f17ac59f5ae93dae31c7033a10e870c4bb6987 (patch)
treec054148e7078b4734cf78c664db7467f6f86ae33 /Source/Core/VideoBackends/OGL/OGLShader.cpp
parent917f0e2182dd9cd82c47dfdf32e2eee4bf28cb37 (diff)
OGLShader: Fix mismatched assignment in compute shader constructor
This shouldn't be assigning to the regular ID.
Diffstat (limited to 'Source/Core/VideoBackends/OGL/OGLShader.cpp')
-rw-r--r--Source/Core/VideoBackends/OGL/OGLShader.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/VideoBackends/OGL/OGLShader.cpp b/Source/Core/VideoBackends/OGL/OGLShader.cpp
index 62c17752f8..e881269524 100644
--- a/Source/Core/VideoBackends/OGL/OGLShader.cpp
+++ b/Source/Core/VideoBackends/OGL/OGLShader.cpp
@@ -30,7 +30,8 @@ OGLShader::OGLShader(ShaderStage stage, GLenum gl_type, GLuint shader_id)
}
OGLShader::OGLShader(GLuint compute_program_id)
- : AbstractShader(ShaderStage::Compute), m_type(GL_COMPUTE_SHADER), m_id(compute_program_id)
+ : AbstractShader(ShaderStage::Compute), m_type(GL_COMPUTE_SHADER),
+ m_compute_program_id(compute_program_id)
{
}