diff --git a/hippo/include/hippo/graphics/material.h b/hippo/include/hippo/graphics/material.h index 0389aac..2cfb1ed 100644 --- a/hippo/include/hippo/graphics/material.h +++ b/hippo/include/hippo/graphics/material.h @@ -45,7 +45,7 @@ namespace hippo::graphics else if constexpr (std::is_same()) { GETUNIFORMVALUE(mUniformMat4s, glm::mat4(1.f)) } else { - static_assert(false, "Unsupported data type in Material::GetUniformValue()"); + static_assert(std::is_same(), "Unsupported data type in Material::GetUniformValue()"); } } #undef GETUNIFORMVALUE @@ -62,7 +62,7 @@ namespace hippo::graphics else if constexpr (std::is_same()) { mUniformMat4s[name] = val; } else { - static_assert(false, "Unsupported data type in Material::SetUniformValue()"); + static_assert(std::is_same(), "Unsupported data type in Material::SetUniformValue()"); } }