mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-12 13:08:50 +01:00
[d3d11] Fix minor code inconsistencies
This commit is contained in:
parent
7069df6b1e
commit
afaa3b5a30
@ -628,7 +628,6 @@ namespace dxvk {
|
|||||||
clearRect.baseArrayLayer = 0;
|
clearRect.baseArrayLayer = 0;
|
||||||
clearRect.layerCount = view->info().numLayers;
|
clearRect.layerCount = view->info().numLayers;
|
||||||
|
|
||||||
// FIXME Is this correct? Docs don't say anything
|
|
||||||
if (m_parent->GetFeatureLevel() < D3D_FEATURE_LEVEL_10_0)
|
if (m_parent->GetFeatureLevel() < D3D_FEATURE_LEVEL_10_0)
|
||||||
clearRect.layerCount = 1;
|
clearRect.layerCount = 1;
|
||||||
|
|
||||||
|
@ -47,10 +47,10 @@ namespace dxvk {
|
|||||||
*ppCommandList = m_commandList.ref();
|
*ppCommandList = m_commandList.ref();
|
||||||
m_commandList = CreateCommandList();
|
m_commandList = CreateCommandList();
|
||||||
|
|
||||||
if (!RestoreDeferredContextState)
|
if (RestoreDeferredContextState)
|
||||||
ClearState();
|
|
||||||
else
|
|
||||||
RestoreState();
|
RestoreState();
|
||||||
|
else
|
||||||
|
ClearState();
|
||||||
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user