egl: store the native surface pointer in struct _egl_surface
[mesa.git] / src / egl / drivers / dri2 / platform_x11.c
index c8c676d2f00161d25050c263b65560e27d44ed72..1d5efc0126d1f8a290f4e8709148655ca177a92a 100644 (file)
@@ -267,7 +267,8 @@ dri2_x11_create_surface(_EGLDriver *drv, _EGLDisplay *disp, EGLint type,
       return NULL;
    }
    
-   if (!dri2_init_surface(&dri2_surf->base, disp, type, conf, attrib_list, false))
+   if (!dri2_init_surface(&dri2_surf->base, disp, type, conf, attrib_list,
+                          false, native_surface))
       goto cleanup_surf;
 
    dri2_surf->region = XCB_NONE;