]> git.cworth.org Git - apitrace/commitdiff
dxgiretrace: Swizzle IDXGISurface maps.
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 29 May 2013 18:28:03 +0000 (19:28 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 29 May 2013 18:28:03 +0000 (19:28 +0100)
specs/dxgi.py

index b114bf5e1d3ce7a4b2243b5ee989913371b9d1e0..7092b16556217d276cc75e1c38871f02f3f32d42 100644 (file)
@@ -67,7 +67,7 @@ DXGI_FRAME_STATISTICS = Struct("DXGI_FRAME_STATISTICS", [
 
 DXGI_MAPPED_RECT = Struct("DXGI_MAPPED_RECT", [
     (INT, "Pitch"),
-    (OpaquePointer(BYTE), "pBits"),
+    (LinearPointer(BYTE, "_MappedSize"), "pBits"),
 ])
 
 DXGI_ADAPTER_DESC = Struct("DXGI_ADAPTER_DESC", [