From 4dbd761d160a8ebb04b225f868dd41144c52cdbc Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Mon, 23 Jun 2025 12:48:25 +0800 Subject: [PATCH] always request stencil buffer (depth24_stencil8) on macos/ios --- .../lib/src/thermion_flutter_method_channel_platform.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/thermion_flutter/thermion_flutter_method_channel/lib/src/thermion_flutter_method_channel_platform.dart b/thermion_flutter/thermion_flutter_method_channel/lib/src/thermion_flutter_method_channel_platform.dart index f8d46538..ba8b954e 100644 --- a/thermion_flutter/thermion_flutter_method_channel/lib/src/thermion_flutter_method_channel_platform.dart +++ b/thermion_flutter/thermion_flutter_method_channel/lib/src/thermion_flutter_method_channel_platform.dart @@ -213,8 +213,9 @@ class ThermionFlutterMethodChannelPlatform extends ThermionFlutterPlatform { TextureUsage.TEXTURE_USAGE_BLIT_SRC, TextureUsage.TEXTURE_USAGE_DEPTH_ATTACHMENT, TextureUsage.TEXTURE_USAGE_SAMPLEABLE, + TextureUsage.TEXTURE_USAGE_STENCIL_ATTACHMENT }, - textureFormat: TextureFormat.DEPTH32F, + textureFormat: TextureFormat.DEPTH24_STENCIL8, // TextureFormat.DEPTH32F, textureSamplerType: TextureSamplerType.SAMPLER_2D, );