mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +01:00
[d3d10] Fix null pBlendStateDesc being dereferenced on def. desc
This commit is contained in:
parent
2454041903
commit
ccf24db428
@ -515,6 +515,8 @@ namespace dxvk {
|
||||
InitReturnPtr(ppBlendState);
|
||||
|
||||
D3D11_BLEND_DESC d3d11Desc;
|
||||
|
||||
if (pBlendStateDesc != nullptr) {
|
||||
d3d11Desc.AlphaToCoverageEnable = pBlendStateDesc->AlphaToCoverageEnable;
|
||||
d3d11Desc.IndependentBlendEnable = TRUE;
|
||||
|
||||
@ -528,6 +530,7 @@ namespace dxvk {
|
||||
d3d11Desc.RenderTarget[i].BlendOpAlpha = D3D11_BLEND_OP(pBlendStateDesc->BlendOpAlpha);
|
||||
d3d11Desc.RenderTarget[i].RenderTargetWriteMask = pBlendStateDesc->RenderTargetWriteMask[i];
|
||||
}
|
||||
}
|
||||
|
||||
ID3D11BlendState* d3d11BlendState = nullptr;
|
||||
HRESULT hr = m_device->CreateBlendState(&d3d11Desc,
|
||||
|
Loading…
x
Reference in New Issue
Block a user