mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-12-11 01:24:12 +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.layerCount = view->info().numLayers;
|
||||
|
||||
// FIXME Is this correct? Docs don't say anything
|
||||
if (m_parent->GetFeatureLevel() < D3D_FEATURE_LEVEL_10_0)
|
||||
clearRect.layerCount = 1;
|
||||
|
||||
|
@ -47,10 +47,10 @@ namespace dxvk {
|
||||
*ppCommandList = m_commandList.ref();
|
||||
m_commandList = CreateCommandList();
|
||||
|
||||
if (!RestoreDeferredContextState)
|
||||
ClearState();
|
||||
else
|
||||
if (RestoreDeferredContextState)
|
||||
RestoreState();
|
||||
else
|
||||
ClearState();
|
||||
|
||||
return S_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user