OGLShader: Ensure m_id and m_compute_program_id are always initialized
Depending on which constructor is invoked, m_id or m_compute_program_id can end up in an uninitialized state. We should ensure that the object is completely initialized to something deterministic regardless of the constructor taken.
This commit is contained in:
parent
83f17ac59f
commit
882d1c1256
|
@ -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…
Reference in New Issue