CreateSwapChainForHwnd failing with DXGI_ERROR_INVALID_CALL #431
Comments
It should work (dunno about specifically this code, but accessing some API from W7 is fine) Have you correctly installed the platform update for Win7? |
You're right, it should work. I have nothing to go on. The platform update came through over a year ago via Windows Update. |
What gives debug output on the device? (as explained here) |
When I do that, I first get:
Then if I hit Continue, I get the SharpDXException:
|
This code is not even running on Windows 8. Have you really tried to run this on Windows 8? Also, when turning debugging on device, I get a self-explanatory message, so please, take the time to dig more into this.
|
I do not have access to a Windows 8 machine at work. (Personally, I prefer 8.) I apologize for my apparent ignorance. Would you mind taking the time to explain how I can get a debug dump such as the one you have there? I have native debugging on and am creating the Direct3D11 device with the Debug flag, and that gives the _com_error above. What could I do differently? |
Well, may be the debug is not working for this particular API on Windows 7. Don't have any W7 so can't confirm. |
I would like to use some of the features of the IDXGISwapChain1 interface, targeting Windows 7 and up. According to MSDN docs for IDXGIFactory2::CreateSwapChainForHwnd there are cases where Windows 7 can successfully call this function:
I haven't been able to use this from SharpDX via the
SwapChain1
constructor. It does give an Invalid Call error with any parameters I've tried. Am I doing something wrong or can this be fixed?Example code:
The text was updated successfully, but these errors were encountered: