Improve renderscript context teardown. Track object in the system and then force their cleanup by releasing all user references once destroy context is called. Java layer will no longer send destroy notifications for objects garbage collected once a context is destroyed.
diff --git a/rsMesh.cpp b/rsMesh.cpp
index aeb52ed..73aef62 100644
--- a/rsMesh.cpp
+++ b/rsMesh.cpp
@@ -22,7 +22,7 @@
#include <GLES/gl.h>
#include <GLES/glext.h>
-Mesh::Mesh()
+Mesh::Mesh(Context *rsc) : ObjectBase(rsc)
{
mVerticies = NULL;
mVerticiesCount = 0;