Fixed some OpenGL stuff