Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/9on12Adapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -554,11 +554,10 @@ namespace D3D9on12
formatOperations |= __D3DFMTOP_RENDERTARGET;
}

// If the format supports render target but not blending, report NOALPHABLEND
// If the format is not blendable, report NOALPHABLEND
// so that CheckDeviceFormat with D3DUSAGE_QUERY_POSTPIXELSHADER_BLENDING
// correctly reflects hardware capability.
if ((formatOperations & __D3DFMTOP_RENDERTARGET) &&
!(dxgiFormatSupport.Support1 & D3D12_FORMAT_SUPPORT1_BLENDABLE))
if (!(dxgiFormatSupport.Support1 & D3D12_FORMAT_SUPPORT1_BLENDABLE))
{
formatOperations |= D3DFORMAT_OP_NOALPHABLEND;
}
Expand Down
Loading