mirror of
https://github.com/nzp-team/dquakeplus.git
synced 2024-11-22 20:02:37 +00:00
Resample large textures on PSP-1000
This commit is contained in:
parent
77d27fa949
commit
8c52efee31
2 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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++)
|
||||
|
|
Loading…
Reference in a new issue