Skip to content

Commit

Permalink
Fix compilation material failure log (#8317)
Browse files Browse the repository at this point in the history
  • Loading branch information
poweifeng authored Dec 18, 2024
1 parent 377a110 commit 8ddc4d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions filament/src/details/Material.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ Program FMaterial::getProgramWithVariants(
<< "The material '" << mName.c_str()
<< "' has not been compiled to include the required GLSL or SPIR-V chunks for the "
"vertex shader (variant="
<< variant.key << ", filtered=" << vertexVariant.key << ").";
<< +variant.key << ", filtered=" << +vertexVariant.key << ").";

/*
* Fragment shader
Expand All @@ -571,7 +571,7 @@ Program FMaterial::getProgramWithVariants(
<< "The material '" << mName.c_str()
<< "' has not been compiled to include the required GLSL or SPIR-V chunks for the "
"fragment shader (variant="
<< variant.key << ", filtered=" << ").";
<< +variant.key << ", filtered=" << +fragmentVariant.key << ").";

Program program;
program.shader(ShaderStage::VERTEX, vsBuilder.data(), vsBuilder.size())
Expand Down

0 comments on commit 8ddc4d3

Please sign in to comment.