mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-02-07 16:31:07 +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)
|
void *PolyBuffer::Lock(unsigned int size)
|
||||||
{
|
{
|
||||||
|
if (mData.size() < (size_t)size)
|
||||||
|
Resize(size);
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue