GNOME Bugzilla – Bug 772415
Avoid calling eglGetDisplay
Last modified: 2016-10-10 18:24:43 UTC
Created attachment 336909 [details] [review] 0001-Use-egl-GetPlatformDisplayEXT-if-available.patch eglGetDisplay forces the implementation to guess what kind of display pointer it's been handled. Different libEGL will do different things, and in particular glvnd does something different than Mesa. eglGetPlatformDisplayEXT lets us be explicit about the display type. Mesa has implemented this for over two years now (starting in 10.2).
Review of attachment 336909 [details] [review]: Looks good.
Review of attachment 336909 [details] [review]: ::: gdk/wayland/gdkglcontext-wayland.c @@ +286,3 @@ return TRUE; + getPlatformDisplay = (PFNEGLGETPLATFORMDISPLAYEXTPROC) eglGetProcAddress ("eglGetPlatformDisplayEXT"); Surely this needs a guard to see if we have EGL_KHR_platform_base or are on EGL 1.5+, not just GetProcAddress ... ?
Created attachment 337345 [details] [review] Fix some EGLDisplay abuse Just type correctness, no functional change
Created attachment 337346 [details] [review] Use eglGetPlatformDisplay{,EXT} if available Adds some more paranoia and support for the egl 1.5 interface.
Review of attachment 337345 [details] [review]: lgtm
Attachment 337346 [details] pushed as 434ce02 - Use eglGetPlatformDisplay{,EXT} if available
Created attachment 337347 [details] [review] Use eglGetPlatformDisplay{,EXT} if available Erk, previous one doesn't build, sorry.