I used flip model to display video (Dx11) on an hWnd. Now I want to use BitBlt model of Direct3D9 to display video on the same hWnd. How can I turn off flip model of Dx11?
For special reasons, I need to turn off Dx11 after using Dx11 display, and then use DX9 to display video.
The actual test result is: even after I release both swapchain and d3ddevice, I still can't use the BitBlt model of Direct3D9 to display video. Is there something wrong with the release code?
reference MSDN:
Use flip model in an HWND that is not also targeted by other APIs, including DXGI bitblt presentation model, other versions of Direct3D, or GDI. Because bitblt model maintains an additional copy of the surface, you can add GDI and other Direct3D contents to the same HWND through piecemeal updates from Direct3D and GDI. When you use the flip model, only Direct3D content in flip model swap chains that the runtime passes to DWM are visible. The runtime ignores all other bitblt model Direct3D or GDI content updates.
