mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
since the tex data is rgba, /say/ it's rgba, not rgb :P
This commit is contained in:
parent
30e0cba25d
commit
d0aaa5263b
1 changed files with 2 additions and 2 deletions
|
@ -515,7 +515,7 @@ decode_truecolor (TargaHeader *targa, tex_t *tex, byte *dataByte)
|
|||
|
||||
switch (targa->pixel_size) {
|
||||
case 24:
|
||||
tex->format = tex_rgb;
|
||||
tex->format = tex_rgba; // image gets expadned to rgba
|
||||
decode_truecolor_24 (targa, tex, dataByte);
|
||||
break;
|
||||
case 32:
|
||||
|
@ -534,7 +534,7 @@ decode_truecolor_rle (TargaHeader *targa, tex_t *tex, byte *dataByte)
|
|||
|
||||
switch (targa->pixel_size) {
|
||||
case 24:
|
||||
tex->format = tex_rgb;
|
||||
tex->format = tex_rgba; // image gets expadned to rgba
|
||||
decode_truecolor_24_rle (targa, tex, dataByte);
|
||||
break;
|
||||
case 32:
|
||||
|
|
Loading…
Reference in a new issue