Skip to content

Commit 73a03d7

Browse files
authored
Flip conditional for fixing missing samplers (#8811)
1 parent 56dc348 commit 73a03d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

filament/src/details/MaterialInstance.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ void FMaterialInstance::fixMissingSamplers() const {
429429
FEngine const& engine = mMaterial->getEngine();
430430
filament::DescriptorSetLayout const& layout = mMaterial->getDescriptorSetLayout();
431431

432-
if (pos->format != SamplerFormat::FLOAT) {
432+
if (pos->format == SamplerFormat::FLOAT) {
433433
// TODO: we only handle missing samplers that are FLOAT
434434
switch (pos->type) {
435435
case SamplerType::SAMPLER_2D:

0 commit comments

Comments
 (0)