mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-24 08:30:16 +00:00
(input_overlay.c) Go through video_driver_get_ptr
This commit is contained in:
parent
daedeced2c
commit
ee733fcd0f
@ -1034,7 +1034,6 @@ input_overlay_t *input_overlay_new(const char *path, bool enable,
|
||||
float opacity, float scale_factor)
|
||||
{
|
||||
input_overlay_t *ol = (input_overlay_t*)calloc(1, sizeof(*ol));
|
||||
driver_t *driver = driver_get_ptr();
|
||||
|
||||
if (!ol)
|
||||
goto error;
|
||||
@ -1052,7 +1051,7 @@ input_overlay_t *input_overlay_new(const char *path, bool enable,
|
||||
goto error;
|
||||
}
|
||||
|
||||
ol->iface_data = driver->video_data;
|
||||
ol->iface_data = video_driver_get_ptr();
|
||||
|
||||
if (!ol->iface)
|
||||
goto error;
|
||||
|
Loading…
Reference in New Issue
Block a user