mirror of
https://github.com/nzp-team/dquakeplus.git
synced 2024-11-22 20:02:37 +00:00
Go back to DXT5 compression for Transparent alias textures and sprites
This commit is contained in:
parent
ba181a6a3e
commit
631448a73d
1 changed files with 12 additions and 0 deletions
|
@ -3234,6 +3234,18 @@ int GL_LoadImages (const char *identifier, int width, int height, const byte *da
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// HACK HACK: Force use of DXT5 for the mbox glow
|
||||||
|
char specChar = identifier[strlen(identifier) - 7];
|
||||||
|
if (specChar == '$')
|
||||||
|
texture.format = GU_PSM_DXT5;
|
||||||
|
|
||||||
|
// Sprite textures also get special treatment :)
|
||||||
|
if (identifier[strlen(identifier) - 5] == 's' &&
|
||||||
|
identifier[strlen(identifier) - 4] == 'p' &&
|
||||||
|
identifier[strlen(identifier) - 3] == 'r') {
|
||||||
|
texture.format = GU_PSM_DXT5;
|
||||||
|
}
|
||||||
|
|
||||||
texture.filter = filter;
|
texture.filter = filter;
|
||||||
if(texture.format < GU_PSM_DXT1)
|
if(texture.format < GU_PSM_DXT1)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue