mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 06:32:48 +00:00
Check if shader->deinit function is bound first
This commit is contained in:
parent
aab828bbe5
commit
ae58a9ed19
@ -117,7 +117,8 @@ void video_shader_driver_deinit(const shader_backend_t *shader)
|
||||
if (!shader)
|
||||
return;
|
||||
|
||||
shader->deinit(shader_data);
|
||||
if (shader->deinit)
|
||||
shader->deinit(shader_data);
|
||||
|
||||
shader_data = NULL;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user