remove video_context_driver_init_image_buffer

This commit is contained in:
twinaphex 2019-08-29 11:26:28 +02:00
parent ca5e51f116
commit cb8107a154
4 changed files with 6 additions and 15 deletions

View File

@ -1625,8 +1625,10 @@ static void gl2_renderchain_resolve_extensions(gl_t *gl,
chain->has_srgb_fbo = gl_check_capability(GL_CAPS_SRGB_FBO);
/* Use regular textures if we use HW render. */
chain->egl_images = !gl->hw_render_use && gl_check_capability(GL_CAPS_EGLIMAGE) &&
video_context_driver_init_image_buffer(video);
chain->egl_images = !gl->hw_render_use
&& gl_check_capability(GL_CAPS_EGLIMAGE)
&& gl->ctx_driver->image_buffer_init
&& gl->ctx_driver->image_buffer_init(gl->ctx_data, video);
}
static void gl_load_texture_data(

View File

@ -254,7 +254,8 @@ static void *vg_init(const video_info_t *video,
}
if (vg_query_extension("KHR_EGL_image")
&& video_context_driver_init_image_buffer((void*)video))
&& vg->ctx_driver->image_buffer_init
&& vg->ctx_driver->image_buffer_init(vg->ctx_data, (void*)video))
{
if (vg->ctx_driver->get_proc_address)
pvgCreateEGLImageTargetKHR = (PFNVGCREATEEGLIMAGETARGETKHRPROC)vg->ctx_driver->get_proc_address("vgCreateEGLImageTargetKHR");

View File

@ -19574,16 +19574,6 @@ const gfx_ctx_driver_t *video_context_driver_init_first(void *data,
return NULL;
}
bool video_context_driver_init_image_buffer(const video_info_t *data)
{
if (
current_video_context.image_buffer_init
&& current_video_context.image_buffer_init(
video_context_data, data))
return true;
return false;
}
bool video_context_driver_write_to_image_buffer(gfx_ctx_image_t *img)
{
if (

View File

@ -1835,8 +1835,6 @@ bool video_context_driver_find_prev_driver(void);
bool video_context_driver_find_next_driver(void);
bool video_context_driver_init_image_buffer(const video_info_t *data);
bool video_context_driver_write_to_image_buffer(gfx_ctx_image_t *img);
bool video_context_driver_get_video_output_prev(void);