Merge pull request #6452 from lioncash/shader
OGLShader: Fix mismatched assignment in compute shader constructor
This commit is contained in:
commit
56fd7bded4
|
@ -30,7 +30,8 @@ OGLShader::OGLShader(ShaderStage stage, GLenum gl_type, GLuint shader_id)
|
||||||
}
|
}
|
||||||
|
|
||||||
OGLShader::OGLShader(GLuint compute_program_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)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -31,8 +31,8 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
GLenum m_type;
|
GLenum m_type;
|
||||||
GLuint m_id;
|
GLuint m_id = 0;
|
||||||
GLuint m_compute_program_id;
|
GLuint m_compute_program_id = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace OGL
|
} // namespace OGL
|
||||||
|
|
Loading…
Reference in New Issue