1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-02 19:24:12 +01:00

[d3d11] Fix minor code inconsistencies

This commit is contained in:
Philip Rebohle 2018-03-10 14:41:06 +01:00
parent 7069df6b1e
commit afaa3b5a30
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 3 additions and 4 deletions

View File

@ -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;

View File

@ -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;
}