Browse Source

fix box2d World_Draw not taking a pointer

Laytan Laats 10 months ago
parent
commit
eccb548935
1 changed files with 1 additions and 1 deletions
  1. 1 1
      vendor/box2d/box2d.odin

+ 1 - 1
vendor/box2d/box2d.odin

@@ -490,7 +490,7 @@ foreign lib {
 	World_Step                    :: proc(worldId: WorldId, timeStep: f32 , subStepCount: c.int) ---
 	World_Step                    :: proc(worldId: WorldId, timeStep: f32 , subStepCount: c.int) ---
 
 
 	// Call this to draw shapes and other debug draw data
 	// Call this to draw shapes and other debug draw data
-	World_Draw                    :: proc(worldId: WorldId, draw: DebugDraw) ---
+	World_Draw                    :: proc(worldId: WorldId, draw: ^DebugDraw) ---
 
 
 	// Get the body events for the current time step. The event data is transient. Do not store a reference to this data.
 	// Get the body events for the current time step. The event data is transient. Do not store a reference to this data.
 	World_GetBodyEvents           :: proc(worldId: WorldId) -> BodyEvents ---
 	World_GetBodyEvents           :: proc(worldId: WorldId) -> BodyEvents ---