update IndexBuffer to also allow zero-size
This commit is contained in:
parent
85f57cd733
commit
5a37b8bdfe
|
@ -152,8 +152,13 @@ namespace Blarg.GameFramework.Graphics
|
||||||
if (!IsClientSide)
|
if (!IsClientSide)
|
||||||
SizeBufferObject();
|
SizeBufferObject();
|
||||||
|
|
||||||
if (CurrentPosition >= NumElements)
|
if (numIndices == 0)
|
||||||
CurrentPosition = NumElements - 1;
|
CurrentPosition = 0;
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (CurrentPosition >= NumElements)
|
||||||
|
CurrentPosition = NumElements - 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Extend(int amount)
|
public void Extend(int amount)
|
||||||
|
|
Reference in a new issue