From 9243887a3a9f2e4989e45bb6b65b4eccb11bb8ac Mon Sep 17 00:00:00 2001 From: "dingyi.chen" Date: Thu, 4 May 2023 16:16:09 -0700 Subject: [PATCH] Fix Sampler External texture build --- filament/src/details/Texture.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/filament/src/details/Texture.cpp b/filament/src/details/Texture.cpp index 51dd8a4f11..92a3b32808 100644 --- a/filament/src/details/Texture.cpp +++ b/filament/src/details/Texture.cpp @@ -137,12 +137,11 @@ Texture* Texture::Builder::build(Engine& engine) { switch (sampler) { case SamplerType::SAMPLER_2D: case SamplerType::SAMPLER_CUBEMAP: + case SamplerType::SAMPLER_EXTERNAL: return true; case SamplerType::SAMPLER_3D: case SamplerType::SAMPLER_2D_ARRAY: return engine.hasFeatureLevel(FeatureLevel::FEATURE_LEVEL_1); - case SamplerType::SAMPLER_EXTERNAL: - return false; case SamplerType::SAMPLER_CUBEMAP_ARRAY: return engine.hasFeatureLevel(FeatureLevel::FEATURE_LEVEL_2); }