grendizerufo / nvidia-texture-tools

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

library hangs when reading linear images #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Load any non-compressed (DDPF_RGB) DDS image that has a zero alpha mask
(for example with the nvdecompress utility)

What is the expected output? What do you see instead?
Load hangs infinitely.

What version of the product are you using? On what operating system?
Latest svn (revision 94).

Please provide any additional information below.
A patch which fixes the problem is attached. Note that I was not entirely
sure how to fix the convert function, but it seems to work.

Original issue reported on code.google.com by amorilia...@gmail.com on 7 Oct 2007 at 6:03

Attachments:

GoogleCodeExporter commented 9 years ago
I figured out what the code in the convert function was supposed to do. :-) 
Attached
is an improved patch. Please ignore the one I posted before.

Original comment by amorilia...@gmail.com on 7 Oct 2007 at 6:24

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for reporting and fixing the problem! The pixel format conversion code 
was 
not heavily tested, and I'm not surprised there were errors. I've committed 
your 
patch and done some cleanups. In particular I've moved the pixel format 
conversion 
helpers to PixelFormat.h, since they were duplicated in two different places.

Original comment by cast...@gmail.com on 8 Oct 2007 at 12:58