summaryrefslogtreecommitdiffstats
path: root/src/egl
diff options
context:
space:
mode:
authorEmil Velikov <[email protected]>2017-05-15 16:14:16 +0100
committerEmil Velikov <[email protected]>2017-05-29 16:59:14 +0100
commit83a792cf25e3171535a20390b0d48f33c266b852 (patch)
treeb5d7efbd01b19ccfc9a8e8dc792690bd40ee3663 /src/egl
parent701311425ee5f2e7b39bcb5e4ef4fa45c01cf836 (diff)
egl/wayland: don't modify the vtbl if an extension is not available
With previous commit we'll error out should one be using the extension when it's not available. Thus we no longer need to modify the vtbl. Signed-off-by: Emil Velikov <[email protected]> Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/egl')
-rw-r--r--src/egl/drivers/dri2/platform_wayland.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c
index 174cfeeb7e9..0014dd4a793 100644
--- a/src/egl/drivers/dri2/platform_wayland.c
+++ b/src/egl/drivers/dri2/platform_wayland.c
@@ -1270,12 +1270,9 @@ dri2_initialize_wayland_drm(_EGLDriver *drv, _EGLDisplay *disp)
* because the buffer of the EGLImage has likely a tiling mode the server
* gpu won't support. These is no way to check for now. Thus do not support the
* extension */
- if (!dri2_dpy->is_different_gpu) {
+ if (!dri2_dpy->is_different_gpu)
disp->Extensions.WL_create_wayland_buffer_from_image = EGL_TRUE;
- } else {
- dri2_wl_display_vtbl.create_wayland_buffer_from_image =
- dri2_fallback_create_wayland_buffer_from_image;
- }
+
disp->Extensions.EXT_buffer_age = EGL_TRUE;
disp->Extensions.EXT_swap_buffers_with_damage = EGL_TRUE;