mirror of
https://github.com/libretro/RetroArch
synced 2025-03-17 10:21:26 +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,8 +1481,12 @@ bool video_driver_ctl(enum rarch_display_ctl_state state, void *data)
|
||||
case RARCH_DISPLAY_CTL_INIT:
|
||||
return init_video();
|
||||
case RARCH_DISPLAY_CTL_DESTROY:
|
||||
video_driver_ctl(RARCH_DISPLAY_CTL_UNSET_RGBA, NULL);
|
||||
current_video = 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;
|
||||
break;
|
||||
case RARCH_DISPLAY_CTL_DESTROY_DATA:
|
||||
video_driver_data = NULL;
|
||||
|
Loading…
x
Reference in New Issue
Block a user