From 79b6c048f7b67677db19cd56e139c1b92799ed75 Mon Sep 17 00:00:00 2001 From: alexiscatnip Date: Tue, 19 Jul 2022 01:12:24 +0800 Subject: [PATCH] refactor, CI: reduce impact of failed Tex pooling --- Assets/Plugins/ObjectPool/TexturePoolSelfImpl.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Assets/Plugins/ObjectPool/TexturePoolSelfImpl.cs b/Assets/Plugins/ObjectPool/TexturePoolSelfImpl.cs index 5576082..6934a1d 100644 --- a/Assets/Plugins/ObjectPool/TexturePoolSelfImpl.cs +++ b/Assets/Plugins/ObjectPool/TexturePoolSelfImpl.cs @@ -48,7 +48,8 @@ namespace Plugins.ObjectPool return fromPool; } - throw new PoolException("insufficient textures in pool"); + Debug.LogWarning("insufficient textures in pool"); + return null; // var t2d = new Texture2D(256, 256, textureFormat, DefaultMipMapOn); // return t2d; }