Fix Sampler External texture build

This commit is contained in:
dingyi.chen
2023-05-05 16:55:42 -07:00
committed by Mathias Agopian
parent 4efac2c0fa
commit 9243887a3a
+1 -2
View File
@@ -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);
}