[Glamor] [PATCH] Fix glamor_egl->egl_create_image_khr makes pointer from integer

Gaetan Nadon memsize at videotron.ca
Sun Dec 8 13:43:08 PST 2013


This is a warning, but a real problem can occur on some system.

Reported-by: Fabio Pedretti <fabio.ped at libero.it>
Reviewed-by: Axel Davy <davyaxel at free.fr>
Signed-off-by: Gaetan Nadon <memsize at videotron.ca>
---
 src/glamor_egl.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/glamor_egl.c b/src/glamor_egl.c
index bf0db3a..ff4c0bd 100644
--- a/src/glamor_egl.c
+++ b/src/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;
 
-- 
1.7.9.5



More information about the Glamor mailing list