[Glamor] [PATCH] Fix glamor_egl->egl_create_image_khr makes pointer from integer
gongzg
zhigang.gong at gmail.com
Mon Dec 9 05:58:50 PST 2013
LGTM, pushed, thanks.
On Sun, Dec 08, 2013 at 04:43:08PM -0500, Gaetan Nadon wrote:
> 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
>
> _______________________________________________
> Glamor mailing list
> Glamor at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/glamor
More information about the Glamor
mailing list