justinstenning / Direct3DHook

DirectX Capture and Overlays by using Direct3D API hooks
http://spazzarama.com/2011/03/14/c-screen-capture-and-overlays-for-direct3d-9-10-and-11-using-api-hooks
MIT License
580 stars 178 forks source link

Direct3D auto-detect incorrectly finds DirectX 11 for DirectX 9/10 application #9

Closed justinstenning closed 10 years ago

justinstenning commented 10 years ago

Can't remember the exact scenario now, but under some circumstances the DirectX 11 library will be loaded for a DirectX 9/10 application.

The current logic will incorrectly choose DirectX 11. Instead we could hook all loaded DirectX versions and then we will be correctly capturing which ever is actually presenting.