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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user