mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 04:45:45 +00:00
Bug 1052234 - Allow RGBA-order D3D11 TextureHosts. - r=bas
This commit is contained in:
parent
7e37b34c58
commit
638c79d7ac
@ -27,6 +27,10 @@ SurfaceFormatToDXGIFormat(gfx::SurfaceFormat aFormat)
|
||||
return DXGI_FORMAT_B8G8R8A8_UNORM;
|
||||
case SurfaceFormat::B8G8R8X8:
|
||||
return DXGI_FORMAT_B8G8R8A8_UNORM;
|
||||
case SurfaceFormat::R8G8B8A8:
|
||||
return DXGI_FORMAT_R8G8B8A8_UNORM;
|
||||
case SurfaceFormat::R8G8B8X8:
|
||||
return DXGI_FORMAT_R8G8B8A8_UNORM;
|
||||
case SurfaceFormat::A8:
|
||||
return DXGI_FORMAT_A8_UNORM;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user