mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
video_shader_driver_reset_to_defaults - early return if current_shader
is NULL
This commit is contained in:
parent
9436cc0234
commit
4aca11693e
@ -3377,6 +3377,9 @@ static bool video_shader_driver_get_feedback_pass_null(void *data, unsigned *idx
|
|||||||
|
|
||||||
static void video_shader_driver_reset_to_defaults(void)
|
static void video_shader_driver_reset_to_defaults(void)
|
||||||
{
|
{
|
||||||
|
if (!current_shader)
|
||||||
|
return;
|
||||||
|
|
||||||
if (!current_shader->wrap_type)
|
if (!current_shader->wrap_type)
|
||||||
current_shader->wrap_type = video_shader_driver_wrap_type_null;
|
current_shader->wrap_type = video_shader_driver_wrap_type_null;
|
||||||
if (current_shader->set_mvp)
|
if (current_shader->set_mvp)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user