Skip to content

Commit

Permalink
[LMAE-23] - Materials - Fixing Linux Build Break
Browse files Browse the repository at this point in the history
  • Loading branch information
progrematic committed Sep 1, 2021
1 parent d941bb9 commit fefc65b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hippo/include/hippo/graphics/material.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ namespace hippo::graphics
else if constexpr (std::is_same<T, glm::mat4>()) { GETUNIFORMVALUE(mUniformMat4s, glm::mat4(1.f)) }
else
{
static_assert(false, "Unsupported data type in Material::GetUniformValue()");
static_assert(std::is_same<T, std::false_type>(), "Unsupported data type in Material::GetUniformValue()");
}
}
#undef GETUNIFORMVALUE
Expand All @@ -62,7 +62,7 @@ namespace hippo::graphics
else if constexpr (std::is_same<T, glm::mat4>()) { mUniformMat4s[name] = val; }
else
{
static_assert(false, "Unsupported data type in Material::SetUniformValue()");
static_assert(std::is_same<T, std::false_type>(), "Unsupported data type in Material::SetUniformValue()");
}
}

Expand Down

0 comments on commit fefc65b

Please sign in to comment.