From 05c587032608b4d76c81c849c0464de81cf2f3eb Mon Sep 17 00:00:00 2001 From: baldurk Date: Sun, 2 Nov 2014 19:02:35 +0000 Subject: [PATCH] Remove assert that's pointless and has false positives. * Technically CopySubresourceRegion should only be called for matching types, but the handling won't change (we'll just mark dest resource as dirty), so this fires when programs are being a bit naughty for no use. --- renderdoc/driver/d3d11/d3d11_context_wrap.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/renderdoc/driver/d3d11/d3d11_context_wrap.cpp b/renderdoc/driver/d3d11/d3d11_context_wrap.cpp index bb31e5cc7..2fe097d91 100644 --- a/renderdoc/driver/d3d11/d3d11_context_wrap.cpp +++ b/renderdoc/driver/d3d11/d3d11_context_wrap.cpp @@ -4650,12 +4650,6 @@ void WrappedID3D11DeviceContext::CopySubresourceRegion( ID3D11Resource *pDstReso // GPU dirty. Just let initial state handle this. m_pDevice->GetResourceManager()->MarkDirtyResource(GetIDForResource(pDstResource)); - - RDCASSERT( - (WrappedID3D11Texture1D::IsAlloc(pDstResource) && WrappedID3D11Texture1D::IsAlloc(pSrcResource)) || - (WrappedID3D11Texture2D::IsAlloc(pDstResource) && WrappedID3D11Texture2D::IsAlloc(pSrcResource)) || - (WrappedID3D11Texture3D::IsAlloc(pDstResource) && WrappedID3D11Texture3D::IsAlloc(pSrcResource)) - ); } }