SWDEV-298434 - Delete texture references resources before deleting the ptr.
Change-Id: Ib616aadd45eced1b10891c908e986bbeddc08288
This commit is contained in:
1 szülő
2f87d24dd2
commit
7145c500b3
3 files changed
+25
-9
No files matched your search
@@ -41,6 +41,7 @@ DeviceVar::~DeviceVar() {
|
||||
|
||||
if (shadowVptr != nullptr) {
|
||||
textureReference* texRef = reinterpret_cast<textureReference*>(shadowVptr);
|
||||
ihipUnbindTexture(texRef);
|
||||
delete texRef;
|
||||
shadowVptr = nullptr;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user