]> git.cworth.org Git - apitrace/blobdiff - wrappers/d3d9trace.py
trace: Unwrap all args before serializing them.
[apitrace] / wrappers / d3d9trace.py
index 2a4c1a93d824503164d15e36b0796a7c105cec59..f3236e729b64d34c5e400aeb7855a894f49ffdbe 100644 (file)
@@ -84,17 +84,6 @@ if __name__ == '__main__':
     print '#include "d3d9shader.hpp"'
     print '#include "dxvaint.h"'
     print
-    print '''
-static inline size_t
-_declCount(const D3DVERTEXELEMENT9 *pVertexElements) {
-    size_t count = 0;
-    if (pVertexElements) {
-        while (pVertexElements[count++].Stream != 0xff)
-            ;
-    }
-    return count;
-}
-'''
 
     api = API()
     api.addModule(d3d9)