Fixing GL settings.