Merge "[vdi] Skip null texture object in hipDestroyTextureObject." into amd-master-next
This commit is contained in:
incheckning
977efb14c6
1 file changed
+1
-1
@@ -312,7 +312,7 @@ hipError_t hipCreateTextureObject(hipTextureObject_t* pTexObject,
|
||||
|
||||
hipError_t ihipDestroyTextureObject(hipTextureObject_t texObject) {
|
||||
if (texObject == nullptr) {
|
||||
return hipErrorInvalidValue;
|
||||
return hipSuccess;
|
||||
}
|
||||
|
||||
const hipResourceType type = texObject->resDesc.resType;
|
||||
|
||||
Reference in new issue
Block a user