Remove OsInterface creation from getDevices on Windows.
Change-Id: I33a141803c336eeaaa6b2702b92515420de97cc1
This commit is contained in:
parent
02216e198d
commit
4eb2e64231
|
@ -42,8 +42,6 @@ bool DeviceFactory::getDevices(HardwareInfo **pHWInfos, size_t &numDevices) {
|
|||
totalDeviceCount = DebugManager.flags.CreateMultipleDevices.get();
|
||||
}
|
||||
std::unique_ptr<HardwareInfo[]> tempHwInfos(new HardwareInfo[totalDeviceCount]);
|
||||
std::unique_ptr<OSInterface> osInterface = std::unique_ptr<OSInterface>(new OSInterface());
|
||||
|
||||
numDevices = 0;
|
||||
|
||||
while (numDevices < totalDeviceCount) {
|
||||
|
@ -52,7 +50,7 @@ bool DeviceFactory::getDevices(HardwareInfo **pHWInfos, size_t &numDevices) {
|
|||
}
|
||||
|
||||
HwInfoConfig *hwConfig = HwInfoConfig::get(tempHwInfos[numDevices].pPlatform->eProductFamily);
|
||||
if (hwConfig->configureHwInfo(&tempHwInfos[numDevices], &tempHwInfos[numDevices], osInterface.get())) {
|
||||
if (hwConfig->configureHwInfo(&tempHwInfos[numDevices], &tempHwInfos[numDevices], nullptr)) {
|
||||
return false;
|
||||
}
|
||||
numDevices++;
|
||||
|
|
Loading…
Reference in New Issue