Correctly sets swapchain pointer for comparison