CStaticModel: Make use of nullptr
This commit is contained in:
parent
4b3af988ad
commit
2732ae8383
|
@ -115,7 +115,7 @@ void CStaticModel::Draw(FRenderOptions Options)
|
||||||
{
|
{
|
||||||
CIndexBuffer *pIBO = &mIBOs[iIBO];
|
CIndexBuffer *pIBO = &mIBOs[iIBO];
|
||||||
pIBO->Bind();
|
pIBO->Bind();
|
||||||
glDrawElements(pIBO->GetPrimitiveType(), pIBO->GetSize(), GL_UNSIGNED_SHORT, (void*) 0);
|
glDrawElements(pIBO->GetPrimitiveType(), pIBO->GetSize(), GL_UNSIGNED_SHORT, nullptr);
|
||||||
pIBO->Unbind();
|
pIBO->Unbind();
|
||||||
gDrawCount++;
|
gDrawCount++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue