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