Merge pull request #621 from lunkhound/dynamic-buffer-fix

fix: when resizing a dynamic vertex buffer, update numVertices
This commit is contained in:
Branimir Karadžić 2015-12-25 09:58:05 -08:00
commit 3324802267

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