summaryrefslogtreecommitdiff
path: root/cpp/RenderScript.cpp
diff options
context:
space:
mode:
authorMiao Wang <miaowang@google.com>2015-09-11 21:35:26 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-09-11 21:35:26 +0000
commit5db7c6879e14c54e82bbebbdfdfb80ddc7f353ba (patch)
treed6c7bae0aa6329a34e4ca55d735c389fef897c3e /cpp/RenderScript.cpp
parent6e834c521595607676d4fb772bd78143af926ba5 (diff)
parente8f9651ed5678846959771bc32a310674408e8a8 (diff)
Merge "C++ API call RS::finish() before destroy rsContext"
Diffstat (limited to 'cpp/RenderScript.cpp')
-rw-r--r--cpp/RenderScript.cpp1
1 files changed, 1 insertions, 0 deletions
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;