[vdi] Skip null texture object in hipDestroyTextureObject.

- To match both CUDA and HCC runtime behavior.

Change-Id: I072b006dd554e17f8341f391d33bf6224a125a7e


[ROCm/clr commit: db4bcda1bf]
이 커밋은 다음에 포함됨:
Michael LIAO가 2020-04-29 12:20:42 -04:00를 커밋했습니다
1 부모 632a78c104
커밋 c8c52c59d4
1 파일이 변경됨
+1 -1
+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;