Petr Bříza
Petr Bříza

Reputation: 11

Direct3D9Ex function pointers mismatch

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: debugger and vtable

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:

Many thanks

Upvotes: 0

Views: 55

Answers (0)

Related Questions