Implement java interface for RS shutdown and fix shutdown deadlock with the command fifo.

This commit is contained in:
Jason Sams
2009-08-25 14:49:07 -07:00
parent c69a8807f3
commit f5b4596a38
6 changed files with 37 additions and 6 deletions

View File

@ -206,6 +206,13 @@ public class RenderScript {
}
}
public void destroy() {
nContextDestroy(mContext);
mContext = 0;
nDeviceDestroy(mDev);
mDev = 0;
}
//////////////////////////////////////////////////////////////////////////////////
// Triangle Mesh