Page 1 of 1

Bug in OgreD3D11Mappings.cpp

Posted: Wed Mar 05, 2014 9:57 am
by andron
Hello.

It seems there is a bug in OgreD3D11Mappings.cpp:

case PF_DXT1: return DXGI_FORMAT_BC1_UNORM;
case PF_DXT2: return DXGI_FORMAT_BC2_UNORM;
case PF_DXT3: return DXGI_FORMAT_BC3_UNORM;
case PF_DXT4: return DXGI_FORMAT_BC4_UNORM;
case PF_DXT5: return DXGI_FORMAT_BC5_UNORM;

Correct:

case PF_DXT1: return DXGI_FORMAT_BC1_UNORM;
case PF_DXT2: return DXGI_FORMAT_BC2_UNORM;
case PF_DXT3: return DXGI_FORMAT_BC2_UNORM;
case PF_DXT4: return DXGI_FORMAT_BC3_UNORM;
case PF_DXT5: return DXGI_FORMAT_BC3_UNORM;

More info:
http://msdn.microsoft.com/en-us/library ... 85%29.aspx

Re: Bug in OgreD3D11Mappings.cpp

Posted: Wed Mar 05, 2014 11:27 am
by spacegaier
If you think there is a bug, please create a bug ticket on our Ogre3D JIRA tracker. Thanks!