mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
Refactor some functions
This commit is contained in:
parent
400d4f1684
commit
fb84259742
@ -397,24 +397,24 @@ const video_poke_interface_t *video_driver_get_poke(void)
|
|||||||
**/
|
**/
|
||||||
uintptr_t video_driver_get_current_framebuffer(void)
|
uintptr_t video_driver_get_current_framebuffer(void)
|
||||||
{
|
{
|
||||||
if (!video_driver_poke || !video_driver_poke->get_current_framebuffer)
|
if (video_driver_poke && video_driver_poke->get_current_framebuffer)
|
||||||
return 0;
|
return video_driver_poke->get_current_framebuffer(video_driver_data);
|
||||||
return video_driver_poke->get_current_framebuffer(video_driver_data);
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
retro_proc_address_t video_driver_get_proc_address(const char *sym)
|
retro_proc_address_t video_driver_get_proc_address(const char *sym)
|
||||||
{
|
{
|
||||||
if (!video_driver_poke || !video_driver_poke->get_proc_address)
|
if (video_driver_poke && video_driver_poke->get_proc_address)
|
||||||
return NULL;
|
return video_driver_poke->get_proc_address(video_driver_data, sym);
|
||||||
return video_driver_poke->get_proc_address(video_driver_data, sym);
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool video_driver_set_shader(enum rarch_shader_type type,
|
bool video_driver_set_shader(enum rarch_shader_type type,
|
||||||
const char *path)
|
const char *path)
|
||||||
{
|
{
|
||||||
if (!current_video->set_shader)
|
if (current_video->set_shader)
|
||||||
return false;
|
return current_video->set_shader(video_driver_data, type, path);
|
||||||
return current_video->set_shader(video_driver_data, type, path);
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void deinit_video_filter(void)
|
static void deinit_video_filter(void)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user