From 752a79562eb13f59fa54b4181d65367c8488c0a5 Mon Sep 17 00:00:00 2001 From: Gaetan Nadon Date: Sun, 8 Dec 2013 16:43:08 -0500 Subject: [PATCH] Fix glamor_egl->egl_create_image_khr makes pointer from integer This is a warning, but a real problem can occur on some system. Reported-by: Fabio Pedretti Reviewed-by: Axel Davy Signed-off-by: Gaetan Nadon Reviewed-by: Zhigang Gong --- glamor/glamor_egl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glamor/glamor_egl.c b/glamor/glamor_egl.c index bf0db3a09..ff4c0bdd9 100644 --- a/glamor/glamor_egl.c +++ b/glamor/glamor_egl.c @@ -453,7 +453,7 @@ int glamor_egl_dri3_fd_name_from_tex (ScreenPtr screen, image = glamor_egl->egl_create_image_khr(glamor_egl->display, glamor_egl->context, EGL_GL_TEXTURE_2D_KHR, - tex, attribs); + (EGLClientBuffer)(uintptr_t)tex, attribs); if (image == EGL_NO_IMAGE_KHR) goto failure;