mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-07-05 20:55:59 +00:00
CStaticModel: Invert condition in BufferGL
This commit is contained in:
parent
6120e60b05
commit
12cd221c48
@ -28,8 +28,9 @@ void CStaticModel::AddSurface(SSurface *pSurface)
|
||||
|
||||
void CStaticModel::BufferGL()
|
||||
{
|
||||
if (!mBuffered)
|
||||
{
|
||||
if (mBuffered)
|
||||
return;
|
||||
|
||||
mVBO.Clear();
|
||||
mIBOs.clear();
|
||||
|
||||
@ -83,7 +84,6 @@ void CStaticModel::BufferGL()
|
||||
ibo.Buffer();
|
||||
|
||||
mBuffered = true;
|
||||
}
|
||||
}
|
||||
|
||||
void CStaticModel::GenerateMaterialShaders()
|
||||
|
Loading…
x
Reference in New Issue
Block a user