mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 00:58:30 -05:00
Fixed messed up handles.
This commit is contained in:
parent
22d8509fe8
commit
d65c875397
3 changed files with 5 additions and 5 deletions
|
@ -346,7 +346,7 @@ namespace bgfx
|
|||
DynamicVertexBufferHandle createDynamicVertexBuffer(const Memory* _mem, const VertexDecl& _decl);
|
||||
|
||||
///
|
||||
void updateDynamicVertexBuffer(DynamicIndexBufferHandle _handle, const Memory* _mem);
|
||||
void updateDynamicVertexBuffer(DynamicVertexBufferHandle _handle, const Memory* _mem);
|
||||
|
||||
///
|
||||
void destroyDynamicVertexBuffer(DynamicVertexBufferHandle _handle);
|
||||
|
@ -448,10 +448,10 @@ namespace bgfx
|
|||
void setIndexBuffer(IndexBufferHandle _handle);
|
||||
|
||||
///
|
||||
void setIndexBuffer(DynamicVertexBufferHandle _handle, uint32_t _firstIndex, uint32_t _numIndices);
|
||||
void setIndexBuffer(DynamicIndexBufferHandle _handle, uint32_t _firstIndex, uint32_t _numIndices);
|
||||
|
||||
///
|
||||
void setIndexBuffer(DynamicVertexBufferHandle _handle);
|
||||
void setIndexBuffer(DynamicIndexBufferHandle _handle);
|
||||
|
||||
///
|
||||
void setIndexBuffer(const TransientIndexBuffer* _ib, uint32_t _numIndices = 0xffffffff);
|
||||
|
|
|
@ -785,7 +785,7 @@ namespace bgfx
|
|||
return s_ctx.createDynamicVertexBuffer(_mem, _decl);
|
||||
}
|
||||
|
||||
void updateDynamicVertexBuffer(DynamicIndexBufferHandle _handle, const Memory* _mem)
|
||||
void updateDynamicVertexBuffer(DynamicVertexBufferHandle _handle, const Memory* _mem)
|
||||
{
|
||||
s_ctx.updateDynamicVertexBuffer(_handle, _mem);
|
||||
}
|
||||
|
|
|
@ -1694,7 +1694,7 @@ namespace bgfx
|
|||
return handle;
|
||||
}
|
||||
|
||||
void updateDynamicVertexBuffer(DynamicIndexBufferHandle _handle, const Memory* _mem)
|
||||
void updateDynamicVertexBuffer(DynamicVertexBufferHandle _handle, const Memory* _mem)
|
||||
{
|
||||
DynamicVertexBuffer& dvb = m_dynamicVertexBuffers[_handle.idx];
|
||||
CommandBuffer& cmdbuf = getCommandBuffer(CommandBuffer::UpdateDynamicVertexBuffer);
|
||||
|
|
Loading…
Reference in a new issue