mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-28 10:35:43 -05:00
fix: when resizing a dynamic vertex buffer, update numVertices
This commit is contained in:
parent
8292eec43b
commit
fb55a92239
1 changed files with 1 additions and 0 deletions
|
@ -2509,6 +2509,7 @@ namespace bgfx
|
|||
dvb.m_handle.idx = uint16_t(ptr>>32);
|
||||
dvb.m_offset = uint32_t(ptr);
|
||||
dvb.m_size = _mem->size;
|
||||
dvb.m_numVertices = dvb.m_size / dvb.m_stride;
|
||||
dvb.m_startVertex = bx::strideAlign(dvb.m_offset, dvb.m_stride)/dvb.m_stride;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue