summaryrefslogtreecommitdiffstats
path: root/src/egl/main/eglapi.c
diff options
context:
space:
mode:
authorAdam Jackson <[email protected]>2019-05-16 18:01:34 +0100
committerMarek Olšák <[email protected]>2019-06-05 13:35:21 -0400
commit8e991ce5397598ceb422397b25e26a89282a3982 (patch)
tree7fa85cabf1a32f62f21fde1cc8a9cbaa6ddb09cd /src/egl/main/eglapi.c
parent72b9aa973b010a6be95b5f955c658113016a36f5 (diff)
egl: handle the full attrib list in display::options
Earlier spec is vague, although EGL 1.5 makes it clear: Multiple calls made to eglGetPlatformDisplay with the same parameters will return the same EGLDisplay handle. With this commit we store and compare the full attrib list. v2 (Emil): - Split into separate patches - Use EGLBoolean over int masked as such - Don't return free'd pointed on calloc failure Reviewed-by: Mathias Fröhlich <[email protected]> Reviewed-by: Marek Olšák <[email protected]> Signed-off-by: Emil Velikov <[email protected]> Signed-off-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/egl/main/eglapi.c')
-rw-r--r--src/egl/main/eglapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c
index fb26c8a0888..05c529ba0a7 100644
--- a/src/egl/main/eglapi.c
+++ b/src/egl/main/eglapi.c
@@ -373,7 +373,7 @@ eglGetDisplay(EGLNativeDisplayType nativeDisplay)
native_display_ptr = (void*) nativeDisplay;
plat = _eglGetNativePlatform(native_display_ptr);
- disp = _eglFindDisplay(plat, native_display_ptr);
+ disp = _eglFindDisplay(plat, native_display_ptr, NULL);
return _eglGetDisplayHandle(disp);
}