X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=retrace%2Fd3dcommonretrace.py;h=add1a5040a87710615ac02e89e1921ced48524a5;hb=ea79919d0046555a2ecfba699c3b80439562120e;hp=e939ddfd6ce3e0ec67eb177c27f96e2db39295ac;hpb=5d7fc0554566ea880915e08218fe9a9bcf1fbeda;p=apitrace diff --git a/retrace/d3dcommonretrace.py b/retrace/d3dcommonretrace.py index e939ddf..add1a50 100644 --- a/retrace/d3dcommonretrace.py +++ b/retrace/d3dcommonretrace.py @@ -52,8 +52,15 @@ class D3DRetracer(Retracer): if function.name in ('D3D10CreateDeviceAndSwapChain', 'D3D10CreateDeviceAndSwapChain1', 'D3D11CreateDeviceAndSwapChain'): print r' pSwapChainDesc->OutputWindow = d3dretrace::createWindow(512, 512);' + if 'Software' in function.argNames(): + print r' if (Software) {' + print r' retrace::warning(call) << "software device\n";' + print r' Software = LoadLibraryA("d3d10warp");' + print r' }' + Retracer.invokeFunction(self, function) + def invokeInterfaceMethod(self, interface, method): # keep track of the last used device for state dumping #if interface.name in ('IDirect3DDevice9', 'IDirect3DDevice9Ex'):