From 085fd6a959d53bff95a7885c5892738c6842c83d Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Thu, 22 Mar 2018 19:28:00 +0100 Subject: [PATCH] [d3d11] Remove unnecessary Map() check --- src/d3d11/d3d11_context_imm.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/d3d11/d3d11_context_imm.cpp b/src/d3d11/d3d11_context_imm.cpp index b4fb8a4fe..0371f7212 100644 --- a/src/d3d11/d3d11_context_imm.cpp +++ b/src/d3d11/d3d11_context_imm.cpp @@ -148,9 +148,6 @@ namespace dxvk { return E_INVALIDARG; } - if (pMappedResource == nullptr) - return S_FALSE; - if (MapType == D3D11_MAP_WRITE_DISCARD) { // Allocate a new backing slice for the buffer and set // it as the 'new' mapped slice. This assumes that the