mesh: 16-bit index usage max vertex count fix

This commit is contained in:
Turánszki János
2022-03-31 12:46:36 +02:00
parent 26a9d5dd5e
commit 812e654dfd
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -423,7 +423,7 @@ namespace wi::scene
inline bool IsTerrain() const { return _flags & TERRAIN; }
inline float GetTessellationFactor() const { return tessellationFactor; }
inline wi::graphics::IndexBufferFormat GetIndexFormat() const { return vertex_positions.size() > 65535 ? wi::graphics::IndexBufferFormat::UINT32 : wi::graphics::IndexBufferFormat::UINT16; }
inline wi::graphics::IndexBufferFormat GetIndexFormat() const { return vertex_positions.size() > 65536 ? wi::graphics::IndexBufferFormat::UINT32 : wi::graphics::IndexBufferFormat::UINT16; }
inline size_t GetIndexStride() const { return GetIndexFormat() == wi::graphics::IndexBufferFormat::UINT32 ? sizeof(uint32_t) : sizeof(uint16_t); }
inline bool IsSkinned() const { return armatureID != wi::ecs::INVALID_ENTITY; }
+1 -1
View File
@@ -9,7 +9,7 @@ namespace wi::version
// minor features, major updates, breaking compatibility changes
const int minor = 60;
// minor bug fixes, alterations, refactors, updates
const int revision = 48;
const int revision = 49;
const std::string version_string = std::to_string(major) + "." + std::to_string(minor) + "." + std::to_string(revision);