mayingzhen / nvidia-texture-tools

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

DDS Header misses DDPF_FOURCC flag when used with DX10 container #165

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. create a dds with dx10 container
2.
3.

What is the expected output? What do you see instead?

the "flags" field in the DDS header should have the bit DDPF_FOURCC set when 
the dds has a DX10 container

What version of the product are you using? On what operating system?
#define NVTT_VERSION 20100

Please provide any additional information below.

This is according to the source code released with the microsoft SDK that I 
used as a starting point for my DDS loading code.

Original issue reported on code.google.com by alberto....@gmail.com on 16 May 2011 at 9:38

GoogleCodeExporter commented 8 years ago
Thanks for the bug report. Looks like you are right, from MSDN:

"If the DDS_PIXELFORMAT dwFlags is set to DDPF_FOURCC and dwFourCC is set to 
"DX10" an additional DDS_HEADER_DXT10 structure will be present..."

http://msdn.microsoft.com/en-us/library/bb943991(v=vs.85).aspx

I'll fix as soon as I have a minute.

Original comment by cast...@gmail.com on 16 May 2011 at 9:42

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r1270.

Original comment by cast...@gmail.com on 13 Sep 2011 at 7:20