Made graphics capture hook to use more common API functions when getting a temp swap chain