Direct cast of int to pointer causes warning on 64 bit machines, use uitptr_t
cast first.
Note that here we're not casting guest address to host address, its just an offset
within an array.
Signed-off-by: Igor Mitsyanko <i.mitsyanko@samsung.com>
mode,
count,
type,
- (ctx->ebo ? (GLvoid*)indices_ : indices));
+ (ctx->ebo ?
+ (GLvoid *)(uintptr_t)indices_ : indices));
ctx->post_draw(ctx, mode);
array->type,
array->normalized,
array->stride,
- (GLvoid*)array->offset);
+ (GLvoid*)(uintptr_t)array->offset);
gles2_ctx->driver_ps->common->BindBuffer(gles2_ctx->driver_ps->common,
GL_ARRAY_BUFFER,