fix so it is opengl 3.0 compatable