Skip to content
Snippets Groups Projects
Commit 2d5d61bc authored by Miguel A. Vico's avatar Miguel A. Vico Committed by Emil Velikov
Browse files

wayland-egl: Make wl_egl_window a versioned struct


We need wl_egl_window to be a versioned struct in order to keep track of
ABI changes.

This change makes the first member of wl_egl_window the version number.

An heuristic in the wayland driver is added so that we don't break
backwards compatibility:

 - If the first field (version) is an actual pointer, it is an old
   implementation of wl_egl_window, and version points to the wl_surface
   proxy.

 - Else, the first field is the version number, and we have
   wl_egl_window::surface pointing to the wl_surface proxy.

Signed-off-by: default avatarMiguel A. Vico <mvicomoya@nvidia.com>
Reviewed-by: default avatarJames Jones <jajones@nvidia.com>
Acked-by: default avatarDaniel Stone <daniels@collabora.com>
Reviewed-by: default avatarEmil Velikov <emil.velikov@collabora.com>
parent 63c251e3
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment