Correct error handling while detecing adapter luid for GL

Change-Id: I332b0de7764ceb1b1dade5552ca39eeda868992e
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
Mateusz Jablonski
2020-09-09 17:14:34 +02:00
committed by sys_ocldev
parent c031bf51f2
commit 89451cd897

View File

@ -187,6 +187,9 @@ void GLSharingFunctionsWindows::initAdapterLuid() {
bool found = false;
HRESULT hr = Wddm::createDxgiFactory(__uuidof(IDXGIFactory), (void **)(&pFactory));
if ((hr != S_OK) || (pFactory == nullptr)) {
return;
}
iDevNum = 0u;
while (pFactory->EnumAdapters1(iDevNum++, &pAdapter) != DXGI_ERROR_NOT_FOUND) {
IDXGIOutput *pOutput = nullptr;