Fixed an uninitialized value in opengl.