CStaticModel: Invert condition in BufferGL
@@ -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()
{
