"description": "egl/surfaceless: Fix EGL_DEVICE_EXT implementation",
"nominated": true,
"nomination_type": 1,
- "resolution": 0,
+ "resolution": 1,
"main_sha": null,
"because_sha": "1efaa85889051978f806c4ea7c6d4997329624e5",
"notes": null
_eglGetSurfacelessDisplay(void *native_display, const EGLAttrib *attrib_list)
{
_EGLDisplay *dpy;
+ _EGLDevice *dev = NULL;
/* Any native display must be an EGLDeviceEXT we know about */
if (native_display != NULL) {
switch (attrib) {
case EGL_DEVICE_EXT:
- if ((native_display && native_display != (void *)value) ||
- (native_display != _eglLookupDevice(native_display))) {
+ dev = _eglLookupDevice((void *)value);
+ if (!dev) {
_eglError(EGL_BAD_DEVICE_EXT, "eglGetPlatformDisplay");
return NULL;
}
}
}
- dpy =
- _eglFindDisplay(_EGL_PLATFORM_SURFACELESS, native_display, attrib_list);
+ dpy = _eglFindDisplay(_EGL_PLATFORM_SURFACELESS, NULL, attrib_list);
if (dpy) {
- dpy->Device = native_display;
+ dpy->Device = dev;
}
return dpy;