Added a console command to reset the GL settings.
Save the GLSettings only after a draw cycle has completed.
Merge branch 'core'