diff options
author | Chad Versace <chad.versace@linux.intel.com> | 2014-01-28 17:03:03 -0800 |
---|---|---|
committer | Chad Versace <chad.versace@linux.intel.com> | 2014-03-17 15:36:04 -0700 |
commit | 958dd80c40dc87545b49d09cb2e4415a30746004 (patch) | |
tree | 2cba4a1a76807498a543e00a4307bdd63c6d2f92 /src/egl/drivers/dri2/platform_wayland.c | |
parent | bf20076bafcf0809529ae470fb12af5eae12b33d (diff) | |
download | external_mesa3d-958dd80c40dc87545b49d09cb2e4415a30746004.zip external_mesa3d-958dd80c40dc87545b49d09cb2e4415a30746004.tar.gz external_mesa3d-958dd80c40dc87545b49d09cb2e4415a30746004.tar.bz2 |
egl/dri2: Dispatch eglDestroySurface by display, not driver
Add dri2_egl_display_vtbl::destroy_surface, set it for each
platform, and let egl_dri2 dispatch eglDestroySurface to that.
This prepares for the EGL platform extensions.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'src/egl/drivers/dri2/platform_wayland.c')
-rw-r--r-- | src/egl/drivers/dri2/platform_wayland.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c index 42a01f7..afafbed 100644 --- a/src/egl/drivers/dri2/platform_wayland.c +++ b/src/egl/drivers/dri2/platform_wayland.c @@ -962,6 +962,7 @@ static struct dri2_egl_display_vtbl dri2_wl_display_vtbl = { .create_window_surface = dri2_wl_create_window_surface, .create_pixmap_surface = dri2_fallback_create_pixmap_surface, .create_pbuffer_surface = dri2_fallback_create_pbuffer_surface, + .destroy_surface = dri2_wl_destroy_surface, .swap_interval = dri2_wl_swap_interval, .swap_buffers = dri2_wl_swap_buffers, .swap_buffers_with_damage = dri2_wl_swap_buffers_with_damage, @@ -981,7 +982,6 @@ dri2_initialize_wayland(_EGLDriver *drv, _EGLDisplay *disp) loader_set_logger(_eglLog); - drv->API.DestroySurface = dri2_wl_destroy_surface; drv->API.Terminate = dri2_wl_terminate; drv->API.QueryBufferAge = dri2_wl_query_buffer_age; |