Utility/IndexBuffer: Fix GetStride() method for big meshes
This commit is contained in:
parent
e3e5c4ba8f
commit
a1e0ae3f38
|
|
@ -24,7 +24,7 @@ namespace Nz
|
||||||
|
|
||||||
inline std::size_t IndexBuffer::GetStride() const
|
inline std::size_t IndexBuffer::GetStride() const
|
||||||
{
|
{
|
||||||
return static_cast<std::size_t>((m_largeIndices) ? sizeof(std::size_t) : sizeof(UInt16));
|
return static_cast<std::size_t>((m_largeIndices) ? sizeof(UInt32) : sizeof(UInt16));
|
||||||
}
|
}
|
||||||
|
|
||||||
inline std::size_t IndexBuffer::GetStartOffset() const
|
inline std::size_t IndexBuffer::GetStartOffset() const
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue