summaryrefslogtreecommitdiff
path: root/cpp/RenderScript.cpp
diff options
context:
space:
mode:
authorTim Murray <timmurray@google.com>2012-11-14 16:51:46 -0800
committerTim Murray <timmurray@google.com>2012-11-14 16:52:42 -0800
commitbaca6c3c3d79a324c7976ba873afdded0b6bcfb5 (patch)
treed3484d6c766221efd762d311c56dcb48d2f61d4b /cpp/RenderScript.cpp
parent3cd44af22622898d3000b2b3c4c408cede294152 (diff)
Fix uninitialized variable bug, add finish()
Change-Id: I79fb54800ad8657c93c7989a5c21838d41f24050
Diffstat (limited to 'cpp/RenderScript.cpp')
-rw-r--r--cpp/RenderScript.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/cpp/RenderScript.cpp b/cpp/RenderScript.cpp
index fe4057d8..4a96dce3 100644
--- a/cpp/RenderScript.cpp
+++ b/cpp/RenderScript.cpp
@@ -161,3 +161,7 @@ void RS::setErrorHandler(ErrorHandlerFunc_t func) {
void RS::setMessageHandler(MessageHandlerFunc_t func) {
mMessageFunc = func;
}
+
+void RS::finish() {
+ rsContextFinish(mContext);
+}