Revert "(Video) Call gfx_ctx_free from common function - uninit_video_input"

This reverts commit aac304410bf92d009c83633fb11cf0a251c6f881.
This commit is contained in:
twinaphex 2015-05-02 22:37:27 +02:00
parent d6a713bb8d
commit 80c5059d43
4 changed files with 8 additions and 4 deletions

View File

@ -851,6 +851,10 @@ 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

View File

@ -1806,6 +1806,8 @@ static void gl_free(void *data)
}
#endif
gfx_ctx_free(gl);
free(gl->empty_buf);
free(gl->conv_buffer);
free(gl);

View File

@ -202,6 +202,8 @@ static void vg_free(void *data)
vgDestroyPaint(vg->mPaintBg);
}
gfx_ctx_free(vg);
free(vg);
}

View File

@ -17,7 +17,6 @@
#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"
@ -415,9 +414,6 @@ 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 &&