From 641344994441c051615f591da0393f9456253a80 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sun, 14 Feb 2016 02:00:14 +0100 Subject: [PATCH] (Android/EGL Images) Buildfixes --- gfx/drivers/gl.c | 4 ++-- gfx/drivers/vg.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gfx/drivers/gl.c b/gfx/drivers/gl.c index 9d1246223d..a5b56a74df 100644 --- a/gfx/drivers/gl.c +++ b/gfx/drivers/gl.c @@ -1348,7 +1348,7 @@ static void gl_init_textures(gl_t *gl, const video_info_t *video) #if defined(HAVE_EGL) && defined(HAVE_OPENGLES2) /* Use regular textures if we use HW render. */ gl->egl_images = !gl->hw_render_use && gl_check_eglimage_proc() && - gfx_ctx_ctl(GFX_CTL_IMAGE_BUFFER_INIT, video); + gfx_ctx_ctl(GFX_CTL_IMAGE_BUFFER_INIT, (void*)video); #else (void)video; #endif @@ -1424,7 +1424,7 @@ static INLINE void gl_copy_frame(gl_t *gl, const void *frame, img_info.pitch = pitch; img_info.index = gl->tex_index; img_info.rgb32 = (gl->base_size == 4); - img_info = &img; + img_info.handle = &img; new_egl = gfx_ctx_ctl(GFX_CTL_IMAGE_BUFFER_WRITE, &img_info); diff --git a/gfx/drivers/vg.c b/gfx/drivers/vg.c index f62a43aeb5..d18dea40fb 100644 --- a/gfx/drivers/vg.c +++ b/gfx/drivers/vg.c @@ -308,7 +308,7 @@ static void vg_copy_frame(void *data, const void *frame, img_info.pitch = pitch; img_info.rgb32 = (vg->mTexType == VG_sXRGB_8888); img_info.index = 0; - img_info = &img; + img_info.handle = &img; new_egl = gfx_ctx_ctl(GFX_CTL_IMAGE_BUFFER_WRITE, &img_info);