[vdi] Skip null texture object in hipDestroyTextureObject.

- To match both CUDA and HCC runtime behavior.

Change-Id: I072b006dd554e17f8341f391d33bf6224a125a7e
这个提交包含在:
Michael LIAO 于 2020-04-29 12:20:42 -04:00 提交
1 父节点 bc65ca64fc
当前提交 db4bcda1bf
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;