mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-20 22:03:12 +01:00
Removed 64K/indices dynamic index buffer limit.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user