Skip to content

Commit 047eb88

Browse files
committed
fix DrawElementsBaseVertex
1 parent 7845fc8 commit 047eb88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Platforms/Graphics/.GL/ConcreteGraphicsContext.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -840,7 +840,7 @@ public override void DrawIndexedPrimitives(PrimitiveType primitiveType, int base
840840
int indexElementCount = GraphicsContextStrategy.GetElementCountArray(primitiveType, primitiveCount);
841841
GLPrimitiveType target = ConcreteGraphicsContext.PrimitiveTypeGL(primitiveType);
842842

843-
if (GL.DrawElementsBaseVertex != null)
843+
if (((ConcreteGraphicsCapabilities)this.Capabilities).SupportsBaseVertex) // if (baseVertex > 0 && )
844844
{
845845
PlatformApplyVertexBuffers(0);
846846

0 commit comments

Comments
 (0)