- model vertex buffer converted.

This commit is contained in:
Christoph Oelckers 2018-10-27 16:59:13 +02:00
commit cd8c7a17eb
5 changed files with 50 additions and 95 deletions

View file

@ -276,7 +276,7 @@ void FGLRenderState::ApplyBuffers()
}
if (mIndexBuffer != mCurrentIndexBuffer)
{
static_cast<GLIndexBuffer*>(mIndexBuffer)->Bind();
if (mIndexBuffer) static_cast<GLIndexBuffer*>(mIndexBuffer)->Bind();
mCurrentIndexBuffer = mIndexBuffer;
}
}