Removed unnecessary OpenGL commands. Re #8099
Merge remote-tracking branch 'origin/bugfix/8099_mountain_lion_opengl_errors'