Debug display mostly OK (#399)

* WIP

* done?

* remove something from variables.h

* missed a warning

* PR fixes (AngheloAlf)

* fix lights

* restore ZAPD makefile

* format

* format again

* fix a graph alloc

* Missed one in skin
This commit is contained in:
louist103
2021-11-03 10:52:01 -04:00
committed by GitHub
parent 11487db1ca
commit fcbd524b5d
10 changed files with 170 additions and 59 deletions
+1 -6
View File
@@ -577,12 +577,7 @@ void SkinMatrix_MtxFToMtx(MtxF* src, Mtx* dest) {
}
Mtx* SkinMatrix_MtxFToNewMtx(GraphicsContext* gfxCtx, MtxF* src) {
s32 pad;
Mtx* mtx;
// TODO allocation should be a macro
mtx = (Mtx*)((int)gfxCtx->polyOpa.d - sizeof(Mtx));
gfxCtx->polyOpa.d = (void*)mtx;
Mtx* mtx = GRAPH_ALLOC(gfxCtx, sizeof(Mtx));
if (mtx == NULL) {
return NULL;