mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-11 05:16:12 +00:00
(Video) Call gfx_ctx_free from common function - uninit_video_input
This commit is contained in:
parent
5b733c019a
commit
aac304410b
@ -851,10 +851,6 @@ static void d3d_free(void *data)
|
||||
d3d_free_overlays(d3d);
|
||||
#endif
|
||||
|
||||
#ifdef _XBOX
|
||||
gfx_ctx_free(d3d);
|
||||
#else
|
||||
|
||||
#ifdef HAVE_MENU
|
||||
d3d_free_overlay(d3d, d3d->menu);
|
||||
#endif
|
||||
|
@ -1806,8 +1806,6 @@ static void gl_free(void *data)
|
||||
}
|
||||
#endif
|
||||
|
||||
gfx_ctx_free(gl);
|
||||
|
||||
free(gl->empty_buf);
|
||||
free(gl->conv_buffer);
|
||||
free(gl);
|
||||
|
@ -202,8 +202,6 @@ static void vg_free(void *data)
|
||||
vgDestroyPaint(vg->mPaintBg);
|
||||
}
|
||||
|
||||
gfx_ctx_free(vg);
|
||||
|
||||
free(vg);
|
||||
}
|
||||
|
||||
|
@ -17,6 +17,7 @@
|
||||
#include <string.h>
|
||||
#include <string/string_list.h>
|
||||
#include "video_driver.h"
|
||||
#include "video_context_driver.h"
|
||||
#include "video_thread_wrapper.h"
|
||||
#include "video_pixel_converter.h"
|
||||
#include "video_monitor.h"
|
||||
@ -414,6 +415,9 @@ void uninit_video_input(void)
|
||||
)
|
||||
input_driver_free();
|
||||
|
||||
if (driver->video_context && driver->video_data)
|
||||
gfx_ctx_free(driver->video_data);
|
||||
|
||||
if (
|
||||
!driver->video_data_own &&
|
||||
driver->video_data &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user