Added unbind texture to samples and tests

[ROCm/hip commit: d5b1e887e9]
This commit is contained in:
Anusha Godavarthy Surya
2019-10-15 11:34:15 +05:30
rodzic 04080d4bb1
commit e74d2cff3f
2 zmienionych plików z 2 dodań i 0 usunięć
@@ -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;