1 file + 22 − 12 Inline Compare changes Side-by-side Inline Show whitespace changes Files 1 source/dx11/GXDevice.cpp +22 −12 Original line number Diff line number Diff line Loading @@ -201,9 +201,17 @@ BOOL CGXDevice::initContext(SXWINDOW wnd, int iWidth, int iHeight, bool isWindow #if defined(_DEBUG) creationFlags |= D3D11_CREATE_DEVICE_DEBUG; #endif log(GX_LOG_INFO, "Initializing %s context\n", (creationFlags & D3D11_CREATE_DEVICE_DEBUG) ? "debug" : "release"); D3D_FEATURE_LEVEL featureLevels111[] = { D3D_FEATURE_LEVEL_11_1 }; if(FAILED(DX_CALL(D3D11CreateDevice(NULL, D3D_DRIVER_TYPE_HARDWARE, NULL, 0, featureLevels111, ARRAYSIZE(featureLevels111), D3D11_SDK_VERSION, &m_pDevice, nullptr, &m_pDeviceContext)))) { log(GX_LOG_INFO, "Unable to use DirectX11.1! Falling back to previous version\n"); D3D_FEATURE_LEVEL featureLevels[] = { D3D_FEATURE_LEVEL_11_1, D3D_FEATURE_LEVEL_11_0, D3D_FEATURE_LEVEL_10_1, D3D_FEATURE_LEVEL_10_0, Loading @@ -216,6 +224,8 @@ BOOL CGXDevice::initContext(SXWINDOW wnd, int iWidth, int iHeight, bool isWindow { return(FALSE); } } if(FAILED(DX_CALL(m_pDevice->QueryInterface(__uuidof(IDXGIDevice), (void **)&m_pDXGIDevice)))) { Loading
source/dx11/GXDevice.cpp +22 −12 Original line number Diff line number Diff line Loading @@ -201,9 +201,17 @@ BOOL CGXDevice::initContext(SXWINDOW wnd, int iWidth, int iHeight, bool isWindow #if defined(_DEBUG) creationFlags |= D3D11_CREATE_DEVICE_DEBUG; #endif log(GX_LOG_INFO, "Initializing %s context\n", (creationFlags & D3D11_CREATE_DEVICE_DEBUG) ? "debug" : "release"); D3D_FEATURE_LEVEL featureLevels111[] = { D3D_FEATURE_LEVEL_11_1 }; if(FAILED(DX_CALL(D3D11CreateDevice(NULL, D3D_DRIVER_TYPE_HARDWARE, NULL, 0, featureLevels111, ARRAYSIZE(featureLevels111), D3D11_SDK_VERSION, &m_pDevice, nullptr, &m_pDeviceContext)))) { log(GX_LOG_INFO, "Unable to use DirectX11.1! Falling back to previous version\n"); D3D_FEATURE_LEVEL featureLevels[] = { D3D_FEATURE_LEVEL_11_1, D3D_FEATURE_LEVEL_11_0, D3D_FEATURE_LEVEL_10_1, D3D_FEATURE_LEVEL_10_0, Loading @@ -216,6 +224,8 @@ BOOL CGXDevice::initContext(SXWINDOW wnd, int iWidth, int iHeight, bool isWindow { return(FALSE); } } if(FAILED(DX_CALL(m_pDevice->QueryInterface(__uuidof(IDXGIDevice), (void **)&m_pDXGIDevice)))) { Loading