Removed a lot of unneeded consts in opengl/state