[PATCH weston 2/4] clients & tests: use eglGetPlatformDisplayEXT when supported

Jonny Lamb jonny.lamb at collabora.co.uk
Wed Feb 25 02:50:24 PST 2015


Il 23/02/2015 18:57, Derek Foreman ha scritto:
>> +	if (get_platform_display) {
>
> I don't think get_platform_display will be defined here if
> EGL_EXT_platform_base wasn't defined?

Such a novice error, fixed.

>> +		d->dpy = get_platform_display(EGL_PLATFORM_WAYLAND_EXT,
>> +					      d->display, NULL);
>
> What about EGL_PLATFORM_WAYLAND_KHR?  I think it's possible that
> EGL_PLATFORM_WAYLAND_KHR is defined but EGL_PLATFORM_WAYLAND_EXT is not?

Yeah these clients and tests should have the #ifdefs too like in 
gl-renderer.

(New patch set to follow.)

-- 
Jonny Lamb


More information about the wayland-devel mailing list