diff --git a/gfx/video_driver.c b/gfx/video_driver.c index a6990fd23b..21997b23ce 100644 --- a/gfx/video_driver.c +++ b/gfx/video_driver.c @@ -2473,6 +2473,24 @@ static void video_shader_driver_use_null(void *data, (void)set_active; } +static bool video_driver_cb_set_coords(void *handle_data, + void *shader_data, const struct video_coords *coords) +{ + current_shader->set_coords(handle_data, shader_data, + coords); + return true; +} + +#if 0 +static bool video_driver_cb_set_coords_fallback(void *handle_data, + void *shader_data, const struct video_coords *coords) +{ + current_shader->set_coords_fallback(handle_data, shader_data, + coords); + return true; +} +#endif + void video_driver_build_info(video_frame_info_t *video_info) { bool is_perfcnt_enable = false; @@ -2581,6 +2599,8 @@ void video_driver_build_info(video_frame_info_t *video_info) video_info->cb_shader_use = video_driver_cb_shader_use; video_info->cb_shader_set_mvp = video_driver_cb_shader_set_mvp; + video_info->cb_set_coords = video_driver_cb_set_coords; + #ifdef HAVE_THREADS video_driver_threaded_unlock(is_threaded); #endif diff --git a/gfx/video_driver.h b/gfx/video_driver.h index de143d1fbf..1ce71c4058 100644 --- a/gfx/video_driver.h +++ b/gfx/video_driver.h @@ -468,6 +468,8 @@ typedef struct video_frame_info bool (*cb_set_resize)(void*, unsigned, unsigned); void (*cb_shader_use)(void *data, void *shader_data, unsigned index, bool set_active); + bool (*cb_set_coords)(void *handle_data, + void *shader_data, const struct video_coords *coords); bool (*cb_shader_set_mvp)(void *data, void *shader_data, const math_matrix_4x4 *mat);