OGLShader: Fix mismatched assignment in compute shader constructor

This shouldn't be assigning to the regular ID.
This commit is contained in:
Lioncash 2018-03-16 17:44:20 -04:00
parent 917f0e2182
commit 83f17ac59f
1 changed files with 2 additions and 1 deletions

View File

@ -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)
{
}