SWDEV-298434 - Delete texture references resources before deleting the ptr.

Change-Id: Ib616aadd45eced1b10891c908e986bbeddc08288
This commit is contained in:
kjayapra-amd authored and Karthik Jayaprakash committed 2021-11-12 11:20:47 -05:00
1 szülő 2f87d24dd2
commit 7145c500b3
3 files changed
+25 -9

No files matched your search

+1
Fájl megtekintése
@@ -41,6 +41,7 @@ DeviceVar::~DeviceVar() {
if (shadowVptr != nullptr) {
textureReference* texRef = reinterpret_cast<textureReference*>(shadowVptr);
ihipUnbindTexture(texRef);
delete texRef;
shadowVptr = nullptr;
}