From 7aed86186290f81daeb6406d8f8dee188ebced64 Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Fri, 29 Dec 2017 01:12:50 +0100 Subject: [PATCH] [tests] Fixed memory leak in compute demo --- tests/d3d11/test_d3d11_compute.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/d3d11/test_d3d11_compute.cpp b/tests/d3d11/test_d3d11_compute.cpp index dbbdd583..87826581 100644 --- a/tests/d3d11/test_d3d11_compute.cpp +++ b/tests/d3d11/test_d3d11_compute.cpp @@ -167,5 +167,6 @@ int WINAPI WinMain(HINSTANCE hInstance, context->Unmap(readBuffer.ptr(), 0); std::cout << "Sum of the numbers 1 to " << srcData.size() << " = " << result << std::endl; + context->ClearState(); return 0; }