- fix crash when rendering models

This commit is contained in:
Magnus Norddahl 2019-07-24 23:25:48 +02:00
parent ec82f994f7
commit a55412fcf6

View file

@ -65,6 +65,8 @@ void PolyBuffer::Unmap()
void *PolyBuffer::Lock(unsigned int size)
{
if (mData.size() < (size_t)size)
Resize(size);
return map;
}