Added unbind texture to samples and tests

[ROCm/clr commit: 20cfe17805]
This commit is contained in:
Anusha Godavarthy Surya
2019-10-15 11:34:15 +05:30
parent c5fc879606
commit 712b6ccdc2
2 changed files with 2 additions and 0 deletions
@@ -124,6 +124,7 @@ bool runTest(int argc, char** argv) {
}
}
}
hipUnbindTexture(tex);
hipFree(dData);
hipFreeArray(array);
return true;
@@ -90,6 +90,7 @@ int runTest(int argc, char** argv) {
}
}
}
HIPCHECK(hipUnbindTexture(tex));
hipFree(dData);
hipFreeArray(hipArray);
return testResult;