Check if shader->deinit function is bound first

This commit is contained in:
twinaphex 2015-12-06 21:19:35 +01:00
parent aab828bbe5
commit ae58a9ed19

View File

@ -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;
}