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…
Reference in New Issue