From 83f17ac59f5ae93dae31c7033a10e870c4bb6987 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Fri, 16 Mar 2018 17:44:20 -0400 Subject: [PATCH] OGLShader: Fix mismatched assignment in compute shader constructor This shouldn't be assigning to the regular ID. --- Source/Core/VideoBackends/OGL/OGLShader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { }