mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-25 04:06:18 +00:00
Fix video_shader_driver_get_current_shader
This commit is contained in:
parent
44d0cc109b
commit
38a7338592
@ -74,12 +74,13 @@ const shader_backend_t *shader_ctx_init_first(void)
|
||||
|
||||
struct video_shader *video_shader_driver_get_current_shader(void)
|
||||
{
|
||||
void *video_driver = video_driver_get_ptr(false);
|
||||
const video_poke_interface_t *video_poke = video_driver_get_poke();
|
||||
if (!video_poke)
|
||||
if (!video_poke || !video_driver)
|
||||
return NULL;
|
||||
if (!video_poke->get_current_shader)
|
||||
return NULL;
|
||||
return video_poke->get_current_shader(shader_data);
|
||||
return video_poke->get_current_shader(video_driver);
|
||||
}
|
||||
|
||||
void video_shader_scale(unsigned idx,
|
||||
|
Loading…
Reference in New Issue
Block a user