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:
Lioncash 2018-03-16 17:47:33 -04:00
parent 83f17ac59f
commit 882d1c1256
1 changed files with 2 additions and 2 deletions

View File

@ -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