mirror of
https://github.com/libretro/RetroArch
synced 2025-03-31 10:20:41 +00:00
Make sure gpu_buffer is set back to NULL too upon
RARCH_DISPLAY_CTL_DESTROY time
This commit is contained in:
parent
015986fea4
commit
09ecd04d67
@ -1399,6 +1399,15 @@ bool video_driver_ctl(enum rarch_display_ctl_state state, void *data)
|
|||||||
|
|
||||||
switch (state)
|
switch (state)
|
||||||
{
|
{
|
||||||
|
case RARCH_DISPLAY_CTL_DESTROY:
|
||||||
|
video_driver_use_rgba = false;
|
||||||
|
video_driver_data_own = false;
|
||||||
|
video_driver_active = false;
|
||||||
|
video_driver_cache_context = false;
|
||||||
|
video_driver_cache_context_ack = false;
|
||||||
|
video_driver_record_gpu_buffer = NULL;
|
||||||
|
current_video = NULL;
|
||||||
|
break;
|
||||||
case RARCH_DISPLAY_CTL_SUPPORTS_RECORDING:
|
case RARCH_DISPLAY_CTL_SUPPORTS_RECORDING:
|
||||||
return settings->video.gpu_record && current_video->read_viewport;
|
return settings->video.gpu_record && current_video->read_viewport;
|
||||||
case RARCH_DISPLAY_CTL_SUPPORTS_VIEWPORT_READ:
|
case RARCH_DISPLAY_CTL_SUPPORTS_VIEWPORT_READ:
|
||||||
@ -1480,14 +1489,6 @@ bool video_driver_ctl(enum rarch_display_ctl_state state, void *data)
|
|||||||
return gfx_ctx_get_video_output_next(gfx_ctx_data_get_ptr());
|
return gfx_ctx_get_video_output_next(gfx_ctx_data_get_ptr());
|
||||||
case RARCH_DISPLAY_CTL_INIT:
|
case RARCH_DISPLAY_CTL_INIT:
|
||||||
return init_video();
|
return init_video();
|
||||||
case RARCH_DISPLAY_CTL_DESTROY:
|
|
||||||
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:
|
case RARCH_DISPLAY_CTL_DESTROY_DATA:
|
||||||
video_driver_data = NULL;
|
video_driver_data = NULL;
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user