Merge "[vdi] Skip null texture object in hipDestroyTextureObject." into amd-master-next

[ROCm/clr commit: 977efb14c6]
Αυτή η υποβολή περιλαμβάνεται σε:
Michael Hong Bin Liao
2020-04-30 16:07:58 -04:00
υποβλήθηκε από Gerrit Code Review
γονέας 662485b575 c8c52c59d4
υποβολή 40639abdaa
@@ -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;