Răsfoiți Sursa

[Collisions] Fix Warning due to obsolete method call.

CartBlanche 2 luni în urmă
părinte
comite
29a965323d
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      Collisions/Core/DebugDraw.cs

+ 2 - 1
Collisions/Core/DebugDraw.cs

@@ -131,7 +131,8 @@ namespace CollisionSample
                 foreach (EffectPass pass in basicEffect.CurrentTechnique.Passes)
                 {
                     pass.Apply();
-                    device.DrawIndexedPrimitives(PrimitiveType.LineList, 0, 0, VertexCount, 0, IndexCount / 2);
+                    // Updated to new overload: DrawIndexedPrimitives(PrimitiveType primitiveType, int baseVertex, int startIndex, int primitiveCount)
+                    device.DrawIndexedPrimitives(PrimitiveType.LineList, 0, 0, IndexCount / 2);
                 }
 
                 device.SetVertexBuffer(null);