[DX11] CreateDeviceAndSwapChain returns S_FALSE when expliciting an adapter..,
Members - Reputation: 1763
Posted 27 February 2011 - 11:40 PM
The thing is, I have just one adapter, and it matchs at the first iteration..But when passing this adapter to CreateDevAndSChain, the function returns S_FALSE, andt its returning 0 for the feature levels...It doesnt make any sense to me, since specifying NULL(with gets the default adapter, witch should be the one Im explicity specifying..) makes it works fine...
I know S_FALSE is not a failure(but it still doesnt make sense), but why would it return 0 for the feature levels? Whats going on?
Actually is worse, it is not creating any device and swapchains, everything is NULL..So why it returns S_FALSE?
Members - Reputation: 724
Posted 28 February 2011 - 11:26 AM
On first guess I'd say that you are passing in the adapter but marking the device type as hardware instead of unknown. The device type must be unknown if you already have an adapter picked out.