diff options
| author | 2009-09-25 14:51:22 -0700 | |
|---|---|---|
| committer | 2009-09-25 14:51:22 -0700 | |
| commit | a9e7a05b84470257637c97d65f6562aa832c66ef (patch) | |
| tree | 04a3175485ae7492c3387003c244953b6880c514 /libs/rs/rsMesh.cpp | |
| parent | a0cad2f5d19d95cfe496ebb82f3227dd4ed7c169 (diff) | |
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.
Diffstat (limited to 'libs/rs/rsMesh.cpp')
| -rw-r--r-- | libs/rs/rsMesh.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/rs/rsMesh.cpp b/libs/rs/rsMesh.cpp index aeb52eda4434..73aef62110a0 100644 --- a/libs/rs/rsMesh.cpp +++ b/libs/rs/rsMesh.cpp @@ -22,7 +22,7 @@ using namespace android::renderscript; #include <GLES/gl.h> #include <GLES/glext.h> -Mesh::Mesh() +Mesh::Mesh(Context *rsc) : ObjectBase(rsc) { mVerticies = NULL; mVerticiesCount = 0; |