mirror of
https://github.com/vanilla-wiiu/vanilla.git
synced 2026-10-28 09:43:51 +00:00
fixed vanilla showing a frozen frame when reconnecting with cuda (#482)
This commit is contained in:
1 file changed
+4
@@ -2087,6 +2087,10 @@ int vui_update_sdl(vui_context_t *vui)
|
||||
if (cuda_ctx) {
|
||||
if (cuda_ctx->resY) cudaGraphicsUnregisterResource(cuda_ctx->resY);
|
||||
if (cuda_ctx->resUV) cudaGraphicsUnregisterResource(cuda_ctx->resUV);
|
||||
if (sdl_ctx->game_tex) {
|
||||
SDL_DestroyTexture(sdl_ctx->game_tex);
|
||||
sdl_ctx->game_tex = NULL;
|
||||
}
|
||||
free(cuda_ctx);
|
||||
cuda_ctx = NULL;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user