message: Fixed depth-stencil format correction in D3D
diff: @@ -189,24 +189,34 @@ DXGI_FORMAT CorrectDXGIFormat( DXGI_FORMAT DXGIFormat, Uint32 BindFlags )
  {
  switch( DXGIFormat )
  {
  + case DXGI_FORMAT_R32_TYPELESS:
  case DXGI_FORMAT_R32_FLOAT:
  case DXGI_FORMAT_D32_FLOAT:
  DXGIFormat = DXGI_FORMAT_R32_TYPELESS;
  break;
  + case DXGI_FORMAT_R24G8_TYPELESS:
  case DXGI_FORMAT_D24_UNORM_S8_UINT:
  case DXGI_FORMAT_R24_UNORM_X8_TYPELESS:
  case DXGI_FORMAT_X24_TYPELESS_G8_UINT:
  DXGIFormat = DXGI_FORMAT_R24G8_TYPELESS;
  break;
  + case DXGI_FORMAT_R16_TYPELESS:
  case DXGI_FORMAT_R16_UNORM:
  case DXGI_FORMAT_D16_UNORM:
  DXGIFormat = DXGI_FORMAT_R16_TYPELESS;
  break;
  + case DXGI_FORMAT_R32G8X24_TYPELESS:
  + case DXGI_FORMAT_D32_FLOAT_S8X24_UINT:
  + case DXGI_FORMAT_R32_FLOAT_X8X24_TYPELESS:
  + case DXGI_FORMAT_X32_TYPELESS_G8X24_UINT:
  + DXGIFormat = DXGI_FORMAT_R32G8X24_TYPELESS;
  + break;
  +
  default:
  - UNEXPECTED( "Unsupported format" );
  + UNEXPECTED( "Unsupported depth-stencil format" );
  break;
  }
  }
  