(BlackBerry) Fix PlayBook crash after selecting a game from RGUI

This commit is contained in:
CatalystG 2013-04-10 20:27:49 -04:00
parent 1e9e703375
commit fdcc6e2087
3 changed files with 4 additions and 2 deletions

View File

@ -320,7 +320,7 @@ void global_uninit_drivers(void)
{
if (driver.video_data)
{
#ifdef RARCH_CONSOLE
#if defined(RARCH_CONSOLE) || defined(__BLACKBERRY_QNX__)
driver.video->stop();
#endif
driver.video_data = NULL;

View File

@ -54,6 +54,8 @@ int rarch_main(int argc, char *argv[])
{
if (g_extern.main_is_init)
rarch_main_deinit();
else
global_uninit_drivers();
struct rarch_main_wrap args = {0};

View File

@ -65,7 +65,7 @@ static void gfx_ctx_destroy(void)
eglDestroyContext(g_egl_dpy, g_egl_ctx);
eglDestroySurface(g_egl_dpy, g_egl_surf);
eglTerminate(g_egl_dpy);
eglReleaseThread();
//eglReleaseThread();
g_egl_dpy = EGL_NO_DISPLAY;
g_egl_surf = EGL_NO_SURFACE;