Skip to content
This repository has been archived by the owner on Feb 25, 2025. It is now read-only.

Commit

Permalink
Check result of D3D11 map operation in Blit11::copyAndConvert.
Browse files Browse the repository at this point in the history
BUG=825503

Change-Id: I407ded1970266bc4fa975850d5700544b9f17b4b
Reviewed-on: https://chromium-review.googlesource.com/980693
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Commit-Queue: Geoff Lang <geofflang@chromium.org>
  • Loading branch information
vonture authored and Commit Bot committed Mar 26, 2018
1 parent 4d54993 commit a571f28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libANGLE/renderer/d3d/d3d11/Blit11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1551,7 +1551,7 @@ gl::Error Blit11::copyAndConvert(const TextureHelper11 &source,
if (mRenderer->getWorkarounds().depthStencilBlitExtraCopy)
{
D3D11_MAPPED_SUBRESOURCE mapped;
deviceContext->Map(destStaging.get(), 0, D3D11_MAP_READ, 0, &mapped);
ANGLE_TRY(mRenderer->mapResource(destStaging.get(), 0, D3D11_MAP_READ, 0, &mapped));
deviceContext->UpdateSubresource(dest.get(), destSubresource, nullptr, mapped.pData,
mapped.RowPitch, mapped.DepthPitch);
deviceContext->Unmap(destStaging.get(), 0);
Expand Down

0 comments on commit a571f28

Please sign in to comment.