mirror of
https://github.com/libretro/RetroArch
synced 2025-03-18 22:20:57 +00:00
Make sure all static local variables from video_driver_ctl are
reset back to default state after calling RARCH_DISPLAY_CTL_DESTROY
This commit is contained in:
parent
88a1f48cc3
commit
0f9ba38b76
@ -1481,7 +1481,11 @@ bool video_driver_ctl(enum rarch_display_ctl_state state, void *data)
|
|||||||
case RARCH_DISPLAY_CTL_INIT:
|
case RARCH_DISPLAY_CTL_INIT:
|
||||||
return init_video();
|
return init_video();
|
||||||
case RARCH_DISPLAY_CTL_DESTROY:
|
case RARCH_DISPLAY_CTL_DESTROY:
|
||||||
video_driver_ctl(RARCH_DISPLAY_CTL_UNSET_RGBA, NULL);
|
video_driver_use_rgba = false;
|
||||||
|
video_driver_data_own = false;
|
||||||
|
video_driver_cache_context = false;
|
||||||
|
video_driver_cache_context_ack = false;
|
||||||
|
video_driver_active = false;
|
||||||
current_video = NULL;
|
current_video = NULL;
|
||||||
break;
|
break;
|
||||||
case RARCH_DISPLAY_CTL_DESTROY_DATA:
|
case RARCH_DISPLAY_CTL_DESTROY_DATA:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user