Reputation: 11
My function calls to D3D9Ex don't work – either they return strange errors or they crash. I have figured out that it's because the vtable is not mapped correctly – the function pointers are mapped to different functions. This is what I see in the VS debugger:
pD3D
is LPDIRECT3D9EX
. So, I think that maybe the cause is some version mismatch. At some point they added the RegisterSoftwareDevice
function but my d3d9.h (and the library?) does not count on it. Anyway, how it should work normally? How does the vtable mapping works so it is aligned with the dll installed on the system?
How do I fix this?
Some more details:
C:\Windows\System32\d3d9.dll
c:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x64\d3d9.lib
C:\Program Files (x86)\Windows Kits\8.1\Include\shared\d3d9.h
Many thanks
Upvotes: 0
Views: 55