Skip to content

Commit

Permalink
Fix compilation material failure log
Browse files Browse the repository at this point in the history
  • Loading branch information
poweifeng committed Dec 17, 2024
1 parent fa3a5d9 commit b8e6749
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 @@ -575,7 +575,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 << ").";
<< (int) variant.key << ", filtered=" << (int) vertexVariant.key << ").";

/*
* Fragment shader
Expand All @@ -590,7 +590,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=" << ").";
<< (int) variant.key << ", filtered=" << (int) fragmentVariant.key << ").";

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

0 comments on commit b8e6749

Please sign in to comment.