mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 00:58:30 -05:00
Merge pull request #378 from zao/fix/msaa-rtv-dimension
Create backbuffer RTVs honoring multisampling
This commit is contained in:
commit
da31e555c0
1 changed files with 4 additions and 1 deletions
|
@ -1496,7 +1496,10 @@ BX_PRAGMA_DIAGNOSTIC_POP();
|
|||
DX_CHECK(m_swapChain->GetBuffer(0, IID_ID3D11Texture2D, (void**)&color));
|
||||
|
||||
D3D11_RENDER_TARGET_VIEW_DESC desc;
|
||||
desc.ViewDimension = D3D11_RTV_DIMENSION_TEXTURE2D;
|
||||
desc.ViewDimension = (m_flags & BGFX_RESET_MSAA_MASK)
|
||||
? D3D11_RTV_DIMENSION_TEXTURE2DMS
|
||||
: D3D11_RTV_DIMENSION_TEXTURE2D
|
||||
;
|
||||
desc.Texture2D.MipSlice = 0;
|
||||
desc.Format = (m_flags & BGFX_RESET_SRGB_BACKBUFFER)
|
||||
? DXGI_FORMAT_R8G8B8A8_UNORM_SRGB
|
||||
|
|
Loading…
Reference in a new issue