Removed a few OpenGL calls that should't be there.