From 812e654dfd40311579d9f2bd6f38936f5f21e5f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tur=C3=A1nszki=20J=C3=A1nos?= Date: Thu, 31 Mar 2022 12:46:36 +0200 Subject: [PATCH] mesh: 16-bit index usage max vertex count fix --- WickedEngine/wiScene.h | 2 +- WickedEngine/wiVersion.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/WickedEngine/wiScene.h b/WickedEngine/wiScene.h index 53805d53a..647cd5f39 100644 --- a/WickedEngine/wiScene.h +++ b/WickedEngine/wiScene.h @@ -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; } diff --git a/WickedEngine/wiVersion.cpp b/WickedEngine/wiVersion.cpp index 16249b9bc..6a24c16c2 100644 --- a/WickedEngine/wiVersion.cpp +++ b/WickedEngine/wiVersion.cpp @@ -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);