diff --git a/include/bgfx.h b/include/bgfx.h index 62c260c93..625addb87 100644 --- a/include/bgfx.h +++ b/include/bgfx.h @@ -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); diff --git a/src/bgfx.cpp b/src/bgfx.cpp index 30fe3bf08..d5aed9780 100644 --- a/src/bgfx.cpp +++ b/src/bgfx.cpp @@ -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); } diff --git a/src/bgfx_p.h b/src/bgfx_p.h index 74c77d865..eaf6648a0 100644 --- a/src/bgfx_p.h +++ b/src/bgfx_p.h @@ -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);