[vdi] Skip null texture object in hipDestroyTextureObject.

- To match both CUDA and HCC runtime behavior.

Change-Id: I072b006dd554e17f8341f391d33bf6224a125a7e


[ROCm/hip commit: cbe9023639]
Dieser Commit ist enthalten in:
Michael LIAO committed 2020-04-29 12:20:42 -04:00
1 Ursprung f814d47640
Commit f34408abb4
1 Datei geändert
+1 -1
+1 -1
Datei anzeigen
@@ -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;