egl: Convert int to attrib in eglGetPlatformDisplay
... because converting attrib to int truncates, and that's bad. Signed-off-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
@@ -266,7 +266,7 @@ _eglIsResourceLinked(_EGLResource *res)
|
||||
|
||||
#ifdef HAVE_X11_PLATFORM
|
||||
_EGLDisplay*
|
||||
_eglGetX11Display(Display *native_display, const EGLint *attrib_list);
|
||||
_eglGetX11Display(Display *native_display, const EGLAttrib *attrib_list);
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_DRM_PLATFORM
|
||||
@@ -274,7 +274,7 @@ struct gbm_device;
|
||||
|
||||
_EGLDisplay*
|
||||
_eglGetGbmDisplay(struct gbm_device *native_display,
|
||||
const EGLint *attrib_list);
|
||||
const EGLAttrib *attrib_list);
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_WAYLAND_PLATFORM
|
||||
@@ -282,13 +282,13 @@ struct wl_display;
|
||||
|
||||
_EGLDisplay*
|
||||
_eglGetWaylandDisplay(struct wl_display *native_display,
|
||||
const EGLint *attrib_list);
|
||||
const EGLAttrib *attrib_list);
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_SURFACELESS_PLATFORM
|
||||
_EGLDisplay*
|
||||
_eglGetSurfacelessDisplay(void *native_display,
|
||||
const EGLint *attrib_list);
|
||||
const EGLAttrib *attrib_list);
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
Reference in New Issue
Block a user