SWDEV-297808 - Free sampler when destroying textures
Change-Id: Idaab76392d18c7f5fedc89497e93f0d17835001a
This commit is contained in:
@@ -329,6 +329,7 @@ hipError_t ihipDestroyTextureObject(hipTextureObject_t texObject) {
|
||||
!texObject->image->isParent();
|
||||
if (isImageFromBuffer || isImageView) {
|
||||
texObject->image->release();
|
||||
texObject->sampler->release();
|
||||
}
|
||||
|
||||
// TODO Should call ihipFree() to not polute the api trace.
|
||||
|
||||
Fai riferimento in un nuovo problema
Block a user