From e8f9651ed5678846959771bc32a310674408e8a8 Mon Sep 17 00:00:00 2001 From: Miao Wang Date: Fri, 11 Sep 2015 14:30:15 -0700 Subject: C++ API call RS::finish() before destroy rsContext Change-Id: I54e78db8bc36d5c7432b8233ebace0d66f83c549 --- cpp/RenderScript.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'cpp/RenderScript.cpp') diff --git a/cpp/RenderScript.cpp b/cpp/RenderScript.cpp index 66a7421c..73a9a56f 100644 --- a/cpp/RenderScript.cpp +++ b/cpp/RenderScript.cpp @@ -59,6 +59,7 @@ RS::~RS() { mMessageRun = false; if (mContext) { + finish(); RS::dispatch->ContextDeinitToClient(mContext); void *res = nullptr; -- cgit v1.2.3