fixed to match new packet2 api

This commit is contained in:
h4570
2020-12-01 17:02:31 +01:00
parent 2fad5f67f1
commit 6f1d0e2e33
2 changed files with 10 additions and 6 deletions
+4 -2
View File
@@ -13,6 +13,7 @@
#include "../include/utils/math.hpp"
#include "../include/utils/debug.hpp"
#include "../include/modules/light.hpp"
#include <packet2_chain.h>
#include <kernel.h>
#include <dma.h>
#include <draw.h>
@@ -61,7 +62,8 @@ void GifSender::sendTexture(MeshTexture &texture, texbuffer_t *t_texBuffer)
packet2->base,
texture.getData(),
texture.getWidth(),
texture.getHeight(), GS_PSM_24,
texture.getHeight(),
texture.getType(),
t_texBuffer->address,
t_texBuffer->width));
packet2_chain_open_cnt(packet2, 0, 0, 0);
@@ -257,5 +259,5 @@ void GifSender::addCurrentCalcs(u32 &t_vertexCount)
packet2_add_u64(currentPacket, st[i].uv);
packet2_add_u64(currentPacket, xyz[i].xyz);
}
packet2_align_to_qword(currentPacket);
packet2_pad128(currentPacket, 0);
}