From 548040ce33a89212e6c7cdb895d5e2ffbfb91de7 Mon Sep 17 00:00:00 2001 From: Liam Don Date: Thu, 5 Dec 2024 01:55:33 -0800 Subject: [PATCH] Catch async error in readTextureAsync (#7173) --- src/platform/graphics/webgl/webgl-graphics-device.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/graphics/webgl/webgl-graphics-device.js b/src/platform/graphics/webgl/webgl-graphics-device.js index db5f503d74b..fb997b67924 100644 --- a/src/platform/graphics/webgl/webgl-graphics-device.js +++ b/src/platform/graphics/webgl/webgl-graphics-device.js @@ -2059,7 +2059,7 @@ class WebglGraphicsDevice extends GraphicsDevice { renderTarget.destroy(); } resolve(data); - }); + }).catch(reject); }); }