Skip to content

Commit

Permalink
GLTF Loader: fixed vexing constexpr linking error on clang/gcc
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMostDiligent committed Dec 18, 2023
1 parent 6c9b61a commit b6b9426
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AssetLoader/src/GLTFLoader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ Model::Model(const ModelCreateInfo& CI)
DEV_CHECK_ERR(CI.IndexType == VT_UINT16 || CI.IndexType == VT_UINT32, "Invalid index type");
DEV_CHECK_ERR(CI.NumVertexAttributes == 0 || CI.VertexAttributes != nullptr, "VertexAttributes must not be null when NumVertexAttributes > 0");
DEV_CHECK_ERR(CI.NumTextureAttributes == 0 || CI.TextureAttributes != nullptr, "TextureAttributes must not be null when NumTextureAttributes > 0");
DEV_CHECK_ERR(CI.NumTextureAttributes <= Material::MaxTextureAttribs, "Too many texture attributes (", CI.NumTextureAttributes, "). Maximum supported: ", Material::MaxTextureAttribs);
DEV_CHECK_ERR(CI.NumTextureAttributes <= Material::MaxTextureAttribs, "Too many texture attributes (", CI.NumTextureAttributes, "). Maximum supported: ", Uint32{Material::MaxTextureAttribs});

const auto* pSrcVertAttribs = CI.VertexAttributes != nullptr ? CI.VertexAttributes : DefaultVertexAttributes.data();
const auto* pSrcTexAttribs = CI.TextureAttributes != nullptr ? CI.TextureAttributes : DefaultTextureAttributes.data();
Expand Down

0 comments on commit b6b9426

Please sign in to comment.