2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-17 19:25:23 +00:00

Windows fixes & memory fixes

This commit is contained in:
2022-03-08 18:35:40 -05:00
parent 3fd0b1f23a
commit c7f05d0a59
16 changed files with 74 additions and 22 deletions

View File

@@ -116,7 +116,7 @@ void queue_surface(const u8* dlStart, u32 dlSize) noexcept {
std::vector<u32> indices;
size_t offset = 0;
while (offset < dlSize) {
while (offset < dlSize - 6) {
const auto header = dlStart[offset];
const auto primitive = static_cast<GX::Primitive>(header & 0xF8);
const auto vtxFmt = static_cast<VertexFormat>(header & 0x3);