From 4a6c2042e459ed3b49dda0aa34d591523e3ff507 Mon Sep 17 00:00:00 2001 From: mtvpls Date: Sat, 20 Dec 2025 20:47:11 +0800 Subject: [PATCH] fix OperationError: Failed to execute 'copyExternalImageToTexture' on 'GPUQueue': Copy rect is out of bounds of external image --- src/app/play/page.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/play/page.tsx b/src/app/play/page.tsx index 2081aca..f4f58b6 100644 --- a/src/app/play/page.tsx +++ b/src/app/play/page.tsx @@ -1060,6 +1060,9 @@ function PlayPageClient() { // 清理播放器资源的统一函数 const cleanupPlayer = () => { + // 先清理Anime4K,避免GPU纹理错误 + cleanupAnime4K(); + if (artPlayerRef.current) { try { // 在销毁前从弹幕插件读取最新配置并保存