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();
|
||||
|
||||
|
@ -84,7 +85,6 @@ void CStaticModel::BufferGL()
|
|||
|
||||
mBuffered = true;
|
||||
}
|
||||
}
|
||||
|
||||
void CStaticModel::GenerateMaterialShaders()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue