Skip to content

Commit

Permalink
remove broken tex heap check
Browse files Browse the repository at this point in the history
  • Loading branch information
bates64 committed Aug 25, 2024
1 parent 00438a1 commit 8624a2c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/model.c
Original file line number Diff line number Diff line change
Expand Up @@ -2008,10 +2008,6 @@ void appendGfx_model(void* data) {
void load_texture_impl(u32 romOffset, TextureHandle* handle, TextureHeader* header, s32 mainSize, s32 mainPalSize, s32 auxSize, s32 auxPalSize) {
Gfx** temp;

s32 heapSize = WORLD_TEXTURE_MEMORY_SIZE;
if (gGameStatusPtr->isBattle) heapSize = BATTLE_TEXTURE_MEMORY_SIZE;
ASSERT_MSG((s32)TextureHeapPos - (s32)TextureHeapBase + mainSize + mainPalSize + auxSize + auxPalSize < heapSize, "Texture heap overflow");

// load main img + palette to texture heap
handle->raster = (IMG_PTR) TextureHeapPos;
if (mainPalSize != 0) {
Expand Down

0 comments on commit 8624a2c

Please sign in to comment.