Use make unique to construct an object.
Change-Id: I4fd944869238c0a4c38676160cb752d523dc07a1
This commit is contained in:
parent
1f3274e3dc
commit
9632d18071
|
@ -47,7 +47,7 @@ DrmCommandStreamReceiver<GfxFamily>::DrmCommandStreamReceiver(const HardwareInfo
|
||||||
residency.reserve(512);
|
residency.reserve(512);
|
||||||
execObjectsStorage.reserve(512);
|
execObjectsStorage.reserve(512);
|
||||||
if (!executionEnvironment.osInterface) {
|
if (!executionEnvironment.osInterface) {
|
||||||
executionEnvironment.osInterface.reset(new OSInterface());
|
executionEnvironment.osInterface = std::make_unique<OSInterface>();
|
||||||
}
|
}
|
||||||
executionEnvironment.osInterface->get()->setDrm(this->drm);
|
executionEnvironment.osInterface->get()->setDrm(this->drm);
|
||||||
CommandStreamReceiver::osInterface = executionEnvironment.osInterface.get();
|
CommandStreamReceiver::osInterface = executionEnvironment.osInterface.get();
|
||||||
|
|
Loading…
Reference in New Issue