mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-12 22:56:52 +01:00
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)
|
||||
: 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:
|
||||
GLenum m_type;
|
||||
GLuint m_id;
|
||||
GLuint m_compute_program_id;
|
||||
GLuint m_id = 0;
|
||||
GLuint m_compute_program_id = 0;
|
||||
};
|
||||
|
||||
} // namespace OGL
|
||||
|
Loading…
x
Reference in New Issue
Block a user