[PATCH 5/5] wined3d: Properly check whether a context was created in swapchain_init().