mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-07-13 08:35:58 +00:00
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];
|
||||
pIBO->Bind();
|
||||
glDrawElements(pIBO->GetPrimitiveType(), pIBO->GetSize(), GL_UNSIGNED_SHORT, (void*) 0);
|
||||
glDrawElements(pIBO->GetPrimitiveType(), pIBO->GetSize(), GL_UNSIGNED_SHORT, nullptr);
|
||||
pIBO->Unbind();
|
||||
gDrawCount++;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user