diff --git a/hipamd/vdi/hip_texture.cpp b/hipamd/vdi/hip_texture.cpp index 94026c8e33..acaaf8c165 100755 --- a/hipamd/vdi/hip_texture.cpp +++ b/hipamd/vdi/hip_texture.cpp @@ -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;