egl: refactor dri2_create_screen() into three separate functions
[mesa.git] / src / egl / drivers / dri2 / platform_android.c
index 42820c9793a867276d9424bc291e92ea12e4e0f8..8384cab3904579ec9c33765062cf536fdcae74d5 100644 (file)
@@ -1153,6 +1153,11 @@ dri2_initialize_android(_EGLDriver *drv, _EGLDisplay *dpy)
       goto cleanup;
    }
 
+   if (!dri2_setup_extensions(dpy))
+      goto cleanup;
+
+   dri2_setup_screen(dpy);
+
    if (!droid_add_configs_for_visuals(drv, dpy)) {
       err = "DRI2: failed to add configs";
       goto cleanup;