fixed vanilla showing a frozen frame when reconnecting with cuda (#482)

This commit is contained in:
Dawn authored and GitHub committed 2026-09-03 14:09:42 -07:00
1 parent 55fb0afe8c
commit a055ed60e7
1 file changed
+4
+4
View File
@@ -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;
}