Add Java exceptions to catch RS calls with no context or no surface.
This commit is contained in:
@@ -34,6 +34,7 @@ public class ProgramVertex extends BaseObj {
|
||||
}
|
||||
|
||||
public void bindAllocation(MatrixAllocation va) {
|
||||
mRS.validate();
|
||||
mRS.nProgramVertexBindAllocation(mID, va.mAlloc.mID);
|
||||
}
|
||||
|
||||
@@ -88,6 +89,7 @@ public class ProgramVertex extends BaseObj {
|
||||
}
|
||||
|
||||
public ProgramVertex create() {
|
||||
mRS.validate();
|
||||
return internalCreate(mRS, this);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user