summaryrefslogtreecommitdiff
path: root/helpers/d3d10size.hpp
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2014-08-20 14:15:28 +0100
committerJosé Fonseca <jfonseca@vmware.com>2014-08-20 14:15:28 +0100
commit83ad89d97ad03883e2d980d5cd3b931d3caddee5 (patch)
tree520e429c08761d9c7bf79f19f2fb05a9ea18b388 /helpers/d3d10size.hpp
parent0688d2e417602961fec3847db1d0788cd0bd49a4 (diff)
dxgitrace: Take the miplevel in consideration for 3D texture mappings.
Diffstat (limited to 'helpers/d3d10size.hpp')
-rw-r--r--helpers/d3d10size.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/helpers/d3d10size.hpp b/helpers/d3d10size.hpp
index 45a39bf2..b5a5ef4d 100644
--- a/helpers/d3d10size.hpp
+++ b/helpers/d3d10size.hpp
@@ -230,6 +230,7 @@ _calcSubresourceSize(ID3D10Resource *pDstResource, UINT DstSubresource, const D3
Width = Desc.Width;
Height = Desc.Height;
Depth = Desc.Depth;
+ MipLevel = DstSubresource % Desc.MipLevels;
}
break;
case D3D10_RESOURCE_DIMENSION_UNKNOWN: