grendizerufo / nvidia-texture-tools

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

fastCompressDXT hits assert when packing singlecolor texture #34

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

when compressing singlecolored texture ( 32 by 32 pixels, all colored
0x40404080) to DXT5 with FastCompressDXT
at nv::compressBlock_BoundsRange c0 and c1 get same value that
triggers nvDebugCheck(block->color.col0.u > block->color.col1.u);
on first entry to this function.

What version of the product are you using? On what operating system?

using latest 2.0.1 (revision 445) with visual studio 2005, windows xp 64.

Please provide any additional information below.

changed assert comparison to '>=', seemed to work fine. didn't check for
other issues with block palette being same color. might have DXT1a issues?

Original issue reported on code.google.com by tomi.kiv...@gmail.com on 15 Feb 2008 at 4:44

GoogleCodeExporter commented 9 years ago
Yes, when colors are equal you have to make sure that none of the indexes is 3. 
I'll
review the code, and fix the issue. Thanks reporting it!

Original comment by cast...@gmail.com on 15 Feb 2008 at 9:12

GoogleCodeExporter commented 9 years ago
This is fixed in trunk now.

Original comment by cast...@gmail.com on 26 Apr 2008 at 9:17

GoogleCodeExporter commented 9 years ago
This is fixed in the 2.0 branch, and will be in the 2.0.3 release.

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