From 2f276439a001b85b93e84bac4ef541cc6f00a4a5 Mon Sep 17 00:00:00 2001 From: Briggs Baltzell Date: Fri, 6 Mar 2026 19:56:29 -0600 Subject: [PATCH] Add demo version-specific mipmap handling logic in `d_menu_cloth` initialization. --- src/d/d_menu_cloth.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/d/d_menu_cloth.cpp b/src/d/d_menu_cloth.cpp index 9c8ca3abe..89a1f69d9 100644 --- a/src/d/d_menu_cloth.cpp +++ b/src/d/d_menu_cloth.cpp @@ -232,7 +232,11 @@ void dMCloth_c::init() { cloth_init(); ResTIMG* image = (ResTIMG*)JKRArchive::getGlbResource('TIMG', "cloth_piece01.bti", mpArc); - JUT_ASSERT(0x212, image != NULL); + JUT_ASSERT(VERSION_SELECT(528, 530, 530, 530), image != NULL); + +#if VERSION == VERSION_DEMO + BOOL mipmap = image->mipmapCount > 1; +#endif GXInitTexObj( &mTexObj, @@ -242,7 +246,11 @@ void dMCloth_c::init() { GXTexFmt(image->format), GXTexWrapMode(image->wrapS), GXTexWrapMode(image->wrapT), +#if VERSION == VERSION_DEMO + mipmap +#else image->mipmapCount > 1 +#endif ); GXInitTexObjLOD(