2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-14 14:46:09 +00:00

Fixes & CArtifactDoll/CSamusDoll updates

This commit is contained in:
2022-03-08 17:21:15 -05:00
parent e88f831950
commit 3fd0b1f23a
14 changed files with 159 additions and 214 deletions

View File

@@ -65,7 +65,7 @@ CCubeMaterial CCubeModel::GetMaterialByIndex(u32 idx) {
bool CCubeModel::TryLockTextures() {
if (!x40_24_texturesLoaded) {
bool texturesPumped = false;
bool texturesLoading = false;
for (auto& texture : *x1c_textures) {
texture.Lock();
bool loadTexture = true;
@@ -77,11 +77,12 @@ bool CCubeModel::TryLockTextures() {
}
}
if (loadTexture) {
// texture->LoadToMRAM();
// texturesPumped = true;
// if (!texture->LoadToMRAM()) {
// texturesLoading = true;
// }
}
}
if (!texturesPumped) {
if (!texturesLoading) {
x40_24_texturesLoaded = true;
}
}