Then I broke DXT3. Fixed DXT3 and DXT5. For real this time.

This commit is contained in:
gibbed 2014-01-20 20:29:45 -08:00
parent 2bda51f5ec
commit e02c5157ef
1 changed files with 1 additions and 1 deletions

View File

@ -1095,7 +1095,7 @@ D3D11GraphicsDriver::TextureInfo D3D11GraphicsDriver::GetTextureInfo(
break;
case FMT_DXT2_3:
case FMT_DXT4_5:
info.format = DXGI_FORMAT_BC3_UNORM;
info.format = (fetch.format == FMT_DXT4_5 ? DXGI_FORMAT_BC3_UNORM : DXGI_FORMAT_BC2_UNORM);
info.block_size = 4;
info.pitch = 16;
info.needs_power_of_two = true;