Allocation API update.
Change-Id: I9b4a71f9e94c7d3978f06b7971051ab4f8472503
This commit is contained in:
@ -52,6 +52,9 @@ class BaseObj {
|
||||
if (mDestroyed) {
|
||||
throw new RSInvalidStateException("using a destroyed object.");
|
||||
}
|
||||
if (mID == 0) {
|
||||
throw new RSRuntimeException("Internal error: Object id 0.");
|
||||
}
|
||||
return mID;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user