destroy leaked context

This commit is contained in:
LazyBumHorse 2019-08-12 23:05:44 +02:00
parent 010df00d74
commit 907bea6abb

View File

@ -923,6 +923,9 @@ static bool gfx_ctx_x_set_video_mode(void *data,
break;
}
glXMakeContextCurrent(g_x11_dpy, None, None, NULL);
glXDestroyContext(g_x11_dpy, x->g_ctx);
RARCH_LOG("[GLX]: Not running Mesa, trying higher versions...\n");
}
else