mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-16 07:16:36 +00:00
Cleanup video_driver_set_shader
This commit is contained in:
parent
c5cdd729db
commit
b77a3c49ee
@ -287,15 +287,12 @@ bool video_driver_has_focus(void)
|
||||
bool video_driver_set_shader(enum rarch_shader_type type,
|
||||
const char *path)
|
||||
{
|
||||
driver_t *driver = driver_get_ptr();
|
||||
if (!driver)
|
||||
return false;
|
||||
if (!driver->video_data)
|
||||
return false;
|
||||
if (!driver->video->set_shader)
|
||||
return false;
|
||||
driver_t *driver = driver_get_ptr();
|
||||
const video_driver_t *video = video_driver_ctx_get_ptr();
|
||||
|
||||
return driver->video->set_shader(driver->video_data, type, path);
|
||||
if (video->set_shader)
|
||||
return video->set_shader(driver->video_data, type, path);
|
||||
return false;
|
||||
}
|
||||
|
||||
static void deinit_video_filter(void)
|
||||
|
Loading…
Reference in New Issue
Block a user