Removed 64K/indices dynamic index buffer limit.

This commit is contained in:
bkaradzic
2013-10-21 22:04:41 -07:00
parent 9646ecfc9c
commit cbac476ee1
3 changed files with 33 additions and 4 deletions

View File

@@ -1637,7 +1637,7 @@ namespace bgfx
s_ctx->destroyVertexBuffer(_handle);
}
DynamicIndexBufferHandle createDynamicIndexBuffer(uint16_t _num)
DynamicIndexBufferHandle createDynamicIndexBuffer(uint32_t _num)
{
BGFX_CHECK_MAIN_THREAD();
return s_ctx->createDynamicIndexBuffer(_num);

View File

@@ -1689,10 +1689,10 @@ namespace bgfx
m_vertexBufferHandle.free(_handle.idx);
}
BGFX_API_FUNC(DynamicIndexBufferHandle createDynamicIndexBuffer(uint16_t _num) )
BGFX_API_FUNC(DynamicIndexBufferHandle createDynamicIndexBuffer(uint32_t _num) )
{
DynamicIndexBufferHandle handle = BGFX_INVALID_HANDLE;
uint32_t size = BX_ALIGN_16(uint32_t(_num*2) );
uint32_t size = BX_ALIGN_16(_num*2);
uint64_t ptr = m_dynamicIndexBufferAllocator.alloc(size);
if (ptr == NonLocalAllocator::invalidBlock)
{