From 1f1da0afa7fdf17fb0791b284d6152e7e392f51f Mon Sep 17 00:00:00 2001 From: Anusha Godavarthy Surya Date: Tue, 15 Oct 2019 11:34:15 +0530 Subject: [PATCH] Added unbind texture to samples and tests [ROCm/hip-tests commit: fc776424a08cb73d6dc94ec1f1a026491c6ae2d3] --- .../samples/2_Cookbook/11_texture_driver/texture2dDrv.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/hip-tests/samples/2_Cookbook/11_texture_driver/texture2dDrv.cpp b/projects/hip-tests/samples/2_Cookbook/11_texture_driver/texture2dDrv.cpp index 2cb9877cac..0aa9ef2913 100644 --- a/projects/hip-tests/samples/2_Cookbook/11_texture_driver/texture2dDrv.cpp +++ b/projects/hip-tests/samples/2_Cookbook/11_texture_driver/texture2dDrv.cpp @@ -124,6 +124,7 @@ bool runTest(int argc, char** argv) { } } } + hipUnbindTexture(tex); hipFree(dData); hipFreeArray(array); return true;