git.s-ol.nu ~forks/DiligentTools / d9aa966
Fixed a couple of Mac build problems Egor Yusov 2 years ago
2 changed file(s) with 5 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
144144 {
145145 // Update join matrices
146146 auto InverseTransform = Mesh->Transforms.matrix.Inverse(); // TODO: do not use inverse tranform here
147 size_t numJoints = std::min((uint32_t)Skin->Joints.size(), Mesh::TransformData::MaxNumJoints);
147 size_t numJoints = std::min((uint32_t)Skin->Joints.size(), Uint32{Mesh::TransformData::MaxNumJoints});
148148 for (size_t i = 0; i < numJoints; i++)
149149 {
150150 auto* JointNode = Skin->Joints[i];
669669 return EImageFileFormat::png;
670670
671671 if (Size >= 4 &&
672 (pData[0] == 0x49 && pData[1] == 0x20 && pData[2] == 0x49 ||
673 pData[0] == 0x49 && pData[1] == 0x49 && pData[2] == 0x2A && pData[3] == 0x00 ||
674 pData[0] == 0x4D && pData[1] == 0x4D && pData[2] == 0x00 && pData[3] == 0x2A ||
675 pData[0] == 0x4D && pData[1] == 0x4D && pData[2] == 0x00 && pData[3] == 0x2B))
672 ((pData[0] == 0x49 && pData[1] == 0x20 && pData[2] == 0x49) ||
673 (pData[0] == 0x49 && pData[1] == 0x49 && pData[2] == 0x2A && pData[3] == 0x00) ||
674 (pData[0] == 0x4D && pData[1] == 0x4D && pData[2] == 0x00 && pData[3] == 0x2A) ||
675 (pData[0] == 0x4D && pData[1] == 0x4D && pData[2] == 0x00 && pData[3] == 0x2B)))
676676 return EImageFileFormat::tiff;
677677
678678 if (Size >= 4 && pData[0] == 0x44 && pData[1] == 0x44 && pData[2] == 0x53 && pData[3] == 0x20)