optimize some proxied gl commands