Skip to content

Commit

Permalink
fix DrawElementsBaseVertex
Browse files Browse the repository at this point in the history
  • Loading branch information
nkast committed Jan 17, 2025
1 parent 7845fc8 commit 047eb88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Platforms/Graphics/.GL/ConcreteGraphicsContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ public override void DrawIndexedPrimitives(PrimitiveType primitiveType, int base
int indexElementCount = GraphicsContextStrategy.GetElementCountArray(primitiveType, primitiveCount);
GLPrimitiveType target = ConcreteGraphicsContext.PrimitiveTypeGL(primitiveType);

if (GL.DrawElementsBaseVertex != null)
if (((ConcreteGraphicsCapabilities)this.Capabilities).SupportsBaseVertex) // if (baseVertex > 0 && )
{
PlatformApplyVertexBuffers(0);

Expand Down

0 comments on commit 047eb88

Please sign in to comment.