fix OperationError: Failed to execute 'copyExternalImageToTexture' on 'GPUQueue': Copy rect is out of bounds of external image

This commit is contained in:
mtvpls
2025-12-20 20:47:11 +08:00
parent 8080bc4c14
commit 4a6c2042e4

View File

@@ -1060,6 +1060,9 @@ function PlayPageClient() {
// 清理播放器资源的统一函数
const cleanupPlayer = () => {
// 先清理Anime4K避免GPU纹理错误
cleanupAnime4K();
if (artPlayerRef.current) {
try {
// 在销毁前从弹幕插件读取最新配置并保存