always request stencil buffer (depth24_stencil8) on macos/ios

This commit is contained in:
Nick Fisher
2025-06-23 12:48:25 +08:00
parent fc365744ef
commit 4dbd761d16

View File

@@ -213,8 +213,9 @@ class ThermionFlutterMethodChannelPlatform extends ThermionFlutterPlatform {
TextureUsage.TEXTURE_USAGE_BLIT_SRC, TextureUsage.TEXTURE_USAGE_BLIT_SRC,
TextureUsage.TEXTURE_USAGE_DEPTH_ATTACHMENT, TextureUsage.TEXTURE_USAGE_DEPTH_ATTACHMENT,
TextureUsage.TEXTURE_USAGE_SAMPLEABLE, TextureUsage.TEXTURE_USAGE_SAMPLEABLE,
TextureUsage.TEXTURE_USAGE_STENCIL_ATTACHMENT
}, },
textureFormat: TextureFormat.DEPTH32F, textureFormat: TextureFormat.DEPTH24_STENCIL8, // TextureFormat.DEPTH32F,
textureSamplerType: TextureSamplerType.SAMPLER_2D, textureSamplerType: TextureSamplerType.SAMPLER_2D,
); );