From 047eb8855830fe21bfdd18c83c741b3c27fcc32b Mon Sep 17 00:00:00 2001 From: Nikos Kastellanos Date: Fri, 17 Jan 2025 16:20:43 +0200 Subject: [PATCH] fix DrawElementsBaseVertex --- Platforms/Graphics/.GL/ConcreteGraphicsContext.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Platforms/Graphics/.GL/ConcreteGraphicsContext.cs b/Platforms/Graphics/.GL/ConcreteGraphicsContext.cs index d82cd3397e4..e683def6f33 100644 --- a/Platforms/Graphics/.GL/ConcreteGraphicsContext.cs +++ b/Platforms/Graphics/.GL/ConcreteGraphicsContext.cs @@ -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);