Fixed OpenGL bugs in OpenGL classes HeatMap and OpenGLSimulationWindow.