mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
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:

committed by
sys_ocldev

parent
c031bf51f2
commit
89451cd897
@ -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;
|
||||
|
Reference in New Issue
Block a user