Add demo version-specific mipmap handling logic in d_menu_cloth initialization.

This commit is contained in:
Briggs Baltzell
2026-03-06 19:56:29 -06:00
parent 883cca8b06
commit 2f276439a0
+9 -1
View File
@@ -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(