mirror of
https://github.com/libretro/RetroArch
synced 2025-04-15 14:42:27 +00:00
(Android/EGL Images) Buildfixes
This commit is contained in:
parent
1d7fdc64ba
commit
6413449944
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user