Fix assert when reading paletted TGA images. Fixes issue 125.
This commit is contained in:
parent
fbed8d31a5
commit
acc7dee80f
@ -1,3 +1,6 @@
|
||||
NVIDIA Texture Tools version 2.0.9
|
||||
* Fix invalid assert when reading paletted TGA images. Fixes issue 125.
|
||||
|
||||
NVIDIA Texture Tools version 2.0.8
|
||||
* Fix float to fixed image conversion. Patch provided by Alex Pfaffe. Fixes issue 121.
|
||||
* ColorBlock::isSingleColor compares only RGB channels. Fixes issue 115.
|
||||
|
@ -266,7 +266,7 @@ Image * nv::ImageIO::loadTGA(Stream & s)
|
||||
// Read palette
|
||||
uint8 palette[768];
|
||||
if( pal ) {
|
||||
nvDebugCheck(tga.colormap_length < 256);
|
||||
nvDebugCheck(tga.colormap_length <= 256);
|
||||
s.serialize(palette, 3 * tga.colormap_length);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user