Resample large textures on PSP-1000

This commit is contained in:
Ian 2023-08-27 15:48:32 -04:00
parent 77d27fa949
commit 8c52efee31
2 changed files with 10 additions and 1 deletions

View file

@ -89,7 +89,7 @@ namespace quake
#else
static size_t heapSize = 10 * 1024 * 1024;
static size_t heapSize = (10 * 1024 * 1024) + (400 * 1024);
#endif // SLIM

View file

@ -3197,6 +3197,15 @@ int GL_LoadImages (const char *identifier, int width, int height, const byte *da
texture.height = std::max(round_up(height),32U);
}
#ifndef SLIM
if (texture.width > 128)
texture.width = 128;
if (texture.height > 128)
texture.height = 128;
#endif // SLIM
if(texture.format < GU_PSM_DXT1)
{
for (int i=0; i <= mipmap_level;i++)