mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-01 16:41:22 +00:00
- fix crash when rendering models
This commit is contained in:
parent
ec82f994f7
commit
a55412fcf6
1 changed files with 2 additions and 0 deletions
|
@ -65,6 +65,8 @@ void PolyBuffer::Unmap()
|
|||
|
||||
void *PolyBuffer::Lock(unsigned int size)
|
||||
{
|
||||
if (mData.size() < (size_t)size)
|
||||
Resize(size);
|
||||
return map;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue