egl: store the native surface pointer in struct _egl_surface
[mesa.git] / src / egl / drivers / dri2 / platform_x11_dri3.c
index 189212745cedfccb885e6453b04f54cff808568e..adcc884c5c2af48ba299953e5ada6bc09d2e4fa9 100644 (file)
@@ -155,7 +155,8 @@ dri3_create_surface(_EGLDriver *drv, _EGLDisplay *disp, EGLint type,
       return NULL;
    }
 
-   if (!dri2_init_surface(&dri3_surf->surf.base, disp, type, conf, attrib_list, false))
+   if (!dri2_init_surface(&dri3_surf->surf.base, disp, type, conf,
+                          attrib_list, false, native_surface))
       goto cleanup_surf;
 
    if (type == EGL_PBUFFER_BIT) {