fix: when resizing a dynamic vertex buffer, update numVertices

This commit is contained in:
Lunkhound 2015-12-25 01:53:25 -08:00
parent 8292eec43b
commit fb55a92239

View file

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