SWDEV-298434 - Delete texture references resources before deleting the ptr.
Change-Id: Ib616aadd45eced1b10891c908e986bbeddc08288
[ROCm/clr commit: 7145c500b3]
This commit is contained in:
gecommit door
Karthik Jayaprakash
bovenliggende
a1917d6593
commit
e9238ae2f1
@@ -41,6 +41,7 @@ DeviceVar::~DeviceVar() {
|
||||
|
||||
if (shadowVptr != nullptr) {
|
||||
textureReference* texRef = reinterpret_cast<textureReference*>(shadowVptr);
|
||||
ihipUnbindTexture(texRef);
|
||||
delete texRef;
|
||||
shadowVptr = nullptr;
|
||||
}
|
||||
|
||||
Verwijs in nieuw issue
Block a user