am 41ceb907: Merge change 22186 into eclair

Merge commit '41ceb907b5d13ee58759022ac8d830b04686baba'

* commit '41ceb907b5d13ee58759022ac8d830b04686baba':
  Allow null to be re-bound as a root script.  This was always legal from native and just a limitation of the java binding for the API.
This commit is contained in:
Jason Sams
2009-08-20 17:28:19 -07:00
committed by Android Git Automerger

View File

@@ -281,7 +281,11 @@ public class RenderScript {
// Root state
public void contextBindRootScript(Script s) {
nContextBindRootScript(s.mID);
int id = 0;
if(s != null) {
id = s.mID;
}
nContextBindRootScript(id);
}
//public void contextBindSampler(Sampler s, int slot) {