From c3a29e9de065d5a6418a2cf66dc05ffc92411c27 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Mon, 11 Dec 2017 16:29:40 +0100 Subject: [PATCH] [d3d11] Return success value when mapping succeeds instead of an error --- src/d3d11/d3d11_context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/d3d11/d3d11_context.cpp b/src/d3d11/d3d11_context.cpp index 5d7eac0ed..6b3566ec6 100644 --- a/src/d3d11/d3d11_context.cpp +++ b/src/d3d11/d3d11_context.cpp @@ -192,7 +192,7 @@ namespace dxvk { pMappedResource->pData = buffer->mapPtr(0); pMappedResource->RowPitch = buffer->info().size; pMappedResource->DepthPitch = buffer->info().size; - return E_FAIL; + return S_OK; } else { Logger::err("D3D11: Mapping of image resources currently not supported"); return E_NOTIMPL;