diff --git a/projects/clr/hipamd/samples/2_Cookbook/11_texture_driver/texture2dDrv.cpp b/projects/clr/hipamd/samples/2_Cookbook/11_texture_driver/texture2dDrv.cpp index 2cb9877cac..0aa9ef2913 100644 --- a/projects/clr/hipamd/samples/2_Cookbook/11_texture_driver/texture2dDrv.cpp +++ b/projects/clr/hipamd/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; diff --git a/projects/clr/hipamd/tests/src/texture/hipTextureRef2D.cpp b/projects/clr/hipamd/tests/src/texture/hipTextureRef2D.cpp index 2fb4097b0a..b476ae8062 100644 --- a/projects/clr/hipamd/tests/src/texture/hipTextureRef2D.cpp +++ b/projects/clr/hipamd/tests/src/texture/hipTextureRef2D.cpp @@ -90,6 +90,7 @@ int runTest(int argc, char** argv) { } } } + HIPCHECK(hipUnbindTexture(tex)); hipFree(dData); hipFreeArray(hipArray); return testResult;