Skip to content

Commit

Permalink
Fix assert with matdbg enabled (#7079)
Browse files Browse the repository at this point in the history
  • Loading branch information
bejado committed Aug 16, 2023
1 parent 288b59a commit 46e4e96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filament/src/details/Material.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class FMaterial : public Material {
// Must be called after prepareProgram().
[[nodiscard]] backend::Handle<backend::HwProgram> getProgram(Variant variant) const noexcept {
#if FILAMENT_ENABLE_MATDBG
assert_invariant(variant.key < VARIANT_COUNT);
assert_invariant((size_t)variant.key < VARIANT_COUNT);
std::unique_lock<utils::Mutex> lock(mActiveProgramsLock);
mActivePrograms.set(variant.key);
lock.unlock();
Expand Down

0 comments on commit 46e4e96

Please sign in to comment.