grendizerufo / nvidia-texture-tools

Automatically exported from code.google.com/p/nvidia-texture-tools
Other
0 stars 0 forks source link

Compression using Quality_Fastest and Format_DXT5 causes an unhandled exception #48

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The following snipped of code produces an unhandled exception when run:

nvtt::CompressionOptions compressionOptions;
compressionOptions.setFormat( nvtt::Format_DXT5 );
compressionOptions.setQuality( nvtt::Quality_Fastest );

Although the following works:

nvtt::CompressionOptions compressionOptions;
compressionOptions.setFormat( nvtt::Format_DXT5 );
compressionOptions.setQuality( nvtt::Quality_Production );

This was tested on Windows XP using nvidia-texture-tools-2.0.2.  The NVidia
Texture Tools are compiled in Debug without CUDA support.

Original issue reported on code.google.com by jon...@gmail.com on 6 Jun 2008 at 10:22

GoogleCodeExporter commented 9 years ago
I should add that the exception produced is as follows:

*** Assertion failed: block->color.col0.u > block->color.col1.u
On file: ...\nvtt\fastcompressdxt.cpp
On function: nv::compressBlock_BoundsRange
On line: 332

Original comment by jon...@gmail.com on 6 Jun 2008 at 10:27

GoogleCodeExporter commented 9 years ago
This is a dupe of issue 34, which is fixed in trunk, and 2.0 branch. The fix 
will be
in the 2.0.3 release.

Original comment by cast...@gmail.com on 9 Jun 2008 at 8:29

GoogleCodeExporter commented 9 years ago
Thanks for the quick reply. Sorry for any inconvenience resulting from my not
realizing that this was already fixed.

Original comment by jon...@gmail.com on 9 Jun 2008 at 4:54