libobs-d3d11: Log adapter ID

master
jp9000 2015-01-14 21:26:23 -08:00
parent 1cb02d5879
commit 389c0b95d6
1 changed files with 3 additions and 1 deletions

View File

@ -15,6 +15,7 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
******************************************************************************/
#include <inttypes.h>
#include <util/base.h>
#include <util/platform.h>
#include <graphics/matrix3.h>
@ -203,7 +204,8 @@ void gs_device::InitDevice(const gs_init_data *data, IDXGIAdapter *adapter)
char *adapterNameUTF8;
os_wcs_to_utf8_ptr(adapterName.c_str(), 0, &adapterNameUTF8);
blog(LOG_INFO, "Loading up D3D11 on adapter %s", adapterNameUTF8);
blog(LOG_INFO, "Loading up D3D11 on adapter %s (%" PRIu32 ")",
adapterNameUTF8, data->adapter);
bfree(adapterNameUTF8);
hr = D3D11CreateDeviceAndSwapChain(adapter, D3D_DRIVER_TYPE_UNKNOWN,