Skip to content

Commit 375b0b3

Browse files
committed
img_wad.c: scale down certain sprites to fit into VRAM
1 parent ef56b98 commit 375b0b3

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

engine/common/imagelib/img_wad.c

+4-9
Original file line numberDiff line numberDiff line change
@@ -319,18 +319,13 @@ qboolean Image_LoadSPR( const char *name, const byte *buffer, fs_offset_t filesi
319319
}
320320
}
321321
}
322-
// Rescale smoke/puff sprites to 2x2
323-
if (Q_stristr(name, "smoke") || Q_stristr(name, "puff") || Q_stristr(name, "tele") || Q_stristr(name, "explo") ){
322+
// FIXME: maximqad THIS IS STUPID UGLY HACK to fit certain sprites into VRAM, remove that when we have VQ sprgen
323+
if (Q_stristr(name, "smoke") || Q_stristr(name, "puff") || Q_stristr(name, "tele") || Q_stristr(name, "explo") )
324+
{
324325
image.width = 2;
325326
image.height = 2;
326327
}
327-
#if 0
328-
else if (image.width > 64 || image.height > 64) {
329-
image.width = 48;
330-
image.height = 48;
331-
Con_DPrintf("Rescaling large sprite to 48x48: %s\n", name);
332-
}
333-
#endif
328+
334329
if( filesize == ( image.width * image.height * 4 ))
335330
truecolor = true;
336331

0 commit comments

Comments
 (0)