Fixed messed up handles.

This commit is contained in:
bkaradzic 2012-06-23 15:13:57 -07:00
parent 22d8509fe8
commit d65c875397
3 changed files with 5 additions and 5 deletions

View File

@ -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);

View File

@ -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);
}

View File

@ -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);