[Mesa-dev] [PATCH] vbo: fix build errors on android
Emil Velikov
emil.l.velikov at gmail.com
Mon Sep 4 12:20:50 UTC 2017
On 4 September 2017 at 06:12, Tapani Pälli <tapani.palli at intel.com> wrote:
> incompatible pointer to integer conversion assigning to 'GLintptr' (aka 'int')
> from 'const char *' [-Werror,-Wint-conversion]
>
> offset = indices;
> ^ ~~~~~~~
>
> Signed-off-by: Tapani Pälli <tapani.palli at intel.com>
> ---
> src/mesa/vbo/vbo_minmax_index.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/mesa/vbo/vbo_minmax_index.c b/src/mesa/vbo/vbo_minmax_index.c
> index 58a2af49ac..1377926bba 100644
> --- a/src/mesa/vbo/vbo_minmax_index.c
> +++ b/src/mesa/vbo/vbo_minmax_index.c
> @@ -255,7 +255,7 @@ vbo_get_minmax_index(struct gl_context *ctx,
> count, min_index, max_index))
> return;
>
> - offset = indices;
> + offset = (GLintptr) indices;
The one line summary seems bit too generic, rework perhaps?
Either way,
Fixes: 2d93b462b4d ("vbo: fix offset in minmax cache key")
Reviewed-by: Emil Velikov <emil.velikov at collabora.com>
-Emil
More information about the mesa-dev
mailing list