diff options
author | Frank Binns <[email protected]> | 2016-06-20 09:00:37 +0100 |
---|---|---|
committer | Chad Versace <[email protected]> | 2016-07-07 13:28:50 -0700 |
commit | 8fd5779da44cd6bf822a52339f3772581aa1e312 (patch) | |
tree | 06ced93b6552bec33ad69d17cf28bee1e030a9d3 | |
parent | 9fea9d6f8e862a8b3f569d37d06d1ff69c6e18f5 (diff) |
egl: restrict swap_available dri2_egl_display field to X11
This field is only ever set and read by the X11 platform.
Signed-off-by: Frank Binns <[email protected]>
Reviewed-by: Chad Versace <[email protected]>
-rw-r--r-- | src/egl/drivers/dri2/egl_dri2.h | 2 | ||||
-rw-r--r-- | src/egl/drivers/dri2/platform_wayland.c | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src/egl/drivers/dri2/egl_dri2.h index 29820cc7658..317de069ecd 100644 --- a/src/egl/drivers/dri2/egl_dri2.h +++ b/src/egl/drivers/dri2/egl_dri2.h @@ -178,7 +178,6 @@ struct dri2_egl_display int fd; int own_device; - int swap_available; int invalidate_available; int min_swap_interval; int max_swap_interval; @@ -198,6 +197,7 @@ struct dri2_egl_display #ifdef HAVE_X11_PLATFORM xcb_connection_t *conn; int screen; + int swap_available; #ifdef HAVE_DRI3 struct loader_dri3_extensions loader_dri3_ext; #endif diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c index ff0d5c802ac..e714e44124b 100644 --- a/src/egl/drivers/dri2/platform_wayland.c +++ b/src/egl/drivers/dri2/platform_wayland.c @@ -1155,8 +1155,6 @@ dri2_initialize_wayland_drm(_EGLDriver *drv, _EGLDisplay *disp) } else dri2_dpy->extensions[3] = NULL; - dri2_dpy->swap_available = EGL_TRUE; - if (!dri2_create_screen(disp)) goto cleanup_driver; |