CStaticModel: Invert condition in BufferGL

This commit is contained in:
Lioncash 2020-06-22 02:24:40 -04:00
parent 6120e60b05
commit 12cd221c48
1 changed files with 45 additions and 45 deletions

View File

@ -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()