On 14 September 2015 at 16:29, Józef Kucia joseph.kucia@gmail.com wrote:
The obtained_feature_level should definitely be passed to D3D11CreateDevice. When it comes to the immediate context, the intent was to get it only when the function succeeds so it doesn't have to be released in every case in which the function fails.
It shouldn't be too bad if you jump to the cleanup code with goto, I think.