1
0
forked from 0ad/0ad
0ad/source/lib/tex
Itms 996b37f07b Fix logic issue with the DXT1a texture format, refs #4549.
Before the NVTT upgrade, no DXT1a file would have been properly decoded:
they would all have been mistaken for a 8bpp greyscale due to a logic
issue in our code, which would have triggered a crash. I did not notice
the logic issue when performing the upgrade. As a result, decoding those
files now fails silently: their alpha bit will be ignored and they will
be handled as DXT1.

This patch fixes the logic and allows us to decode DXT1a properly, in
accordance with the format specifications. Currently, we do not use this
format.

Reviewed By: wraitii
Differential Revision: https://code.wildfiregames.com/D2522
This was SVN commit r23973.
2020-08-18 16:45:56 +00:00
..
tex_bmp.cpp Fixes some ambiguous calls of abs(). 2019-07-17 22:39:30 +00:00
tex_codec.cpp Make all Wildfire Games copyright headers consistent by always ending with a period and using (C) instead of (c). 2017-07-10 14:26:24 +00:00
tex_codec.h Make all Wildfire Games copyright headers consistent by always ending with a period and using (C) instead of (c). 2017-07-10 14:26:24 +00:00
tex_dds.cpp Fix logic issue with the DXT1a texture format, refs #4549. 2020-08-18 16:45:56 +00:00
tex_internal.h Bump year number of files changed this year in the license headers. 2017-05-01 14:28:22 +00:00
tex_png.cpp Fix compiler warnings on VS 2015, refs #3439, refs #5069. 2018-03-10 09:58:53 +00:00
tex_tga.cpp Bump year number of files changed this year in the license headers. 2017-05-01 14:28:22 +00:00
tex.cpp Bump year number of files changed this year in the license headers. 2017-05-01 14:28:22 +00:00
tex.h Make all Wildfire Games copyright headers consistent by always ending with a period and using (C) instead of (c). 2017-07-10 14:26:24 +00:00