diff options
| author | Derek Hensley <hensley.derek58@gmail.com> | 2022-10-28 10:09:16 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-28 14:09:16 -0300 |
| commit | fde3a29b1777aa4c54c37dfc404503810ef42b33 (patch) | |
| tree | ffa7b88f258d3636634e2bf9d58f866a2ca4c679 /src/code/z_debug_display.c | |
| parent | f191044a051cc70833e5c496dd1a1fecaea1c03b (diff) | |
Add ALIGN16 to GRAPH_ALLOC (#1137)
* Add ALIGN16 to GRAPH_ALLOC
* format
* DebugDisplay_PathDisplayList
* 1 more
* PR
* Format
* Reverse gfxHead and gfx
* PR
Diffstat (limited to 'src/code/z_debug_display.c')
| -rw-r--r-- | src/code/z_debug_display.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/code/z_debug_display.c b/src/code/z_debug_display.c index e7c9dd0be..f98b8636e 100644 --- a/src/code/z_debug_display.c +++ b/src/code/z_debug_display.c @@ -148,9 +148,9 @@ Gfx* DebugDisplay_PathDisplayList(GraphicsContext* gfxCtx, Path* path) { s32 segment; // of path ending at the current point, 1-indexed if (path != NULL) { - // count - 1 segments, 1 gSPVertex and 3 gSP2Triangles for each, plus a gSPEndDisplayList - gfx = GRAPH_ALLOC(gfxCtx, ALIGN16(((path->count - 1) * 4 + 1) * sizeof(Gfx))); - curVtx = GRAPH_ALLOC(gfxCtx, ALIGN16(path->count * 6 * sizeof(Vtx))); + // (count - 1) segments, 1 gSPVertex and 3 gSP2Triangles for each, plus a gSPEndDisplayList + gfx = GRAPH_ALLOC(gfxCtx, ((path->count - 1) * 4 + 1) * sizeof(Gfx)); + curVtx = GRAPH_ALLOC(gfxCtx, path->count * 6 * sizeof(Vtx)); gfxHead = gfx; curBaseVtx = curVtx; @@ -202,7 +202,7 @@ Gfx* DebugDisplay_PathDisplayList(GraphicsContext* gfxCtx, Path* path) { gSPEndDisplayList(gfx++); } else { // No path, trivial displaylist - gfxHead = gfx = GRAPH_ALLOC(gfxCtx, ALIGN16(sizeof(Gfx))); + gfx = gfxHead = GRAPH_ALLOC(gfxCtx, sizeof(Gfx)); gSPEndDisplayList(gfx++); } return gfxHead; |
