Cleanup of object destruction. No need to have a per-class destruction function. This was a legacy of the distant past when the classes did not have a common base.

This commit is contained in:
Jason Sams
2009-08-18 14:14:24 -07:00
parent 48134b78d5
commit 7ce033d797
25 changed files with 47 additions and 346 deletions

View File

@@ -33,14 +33,6 @@ public class ProgramVertex extends BaseObj {
mID = id;
}
public void destroy() {
if(mDestroyed) {
throw new IllegalStateException("Object already destroyed.");
}
mDestroyed = true;
mRS.nProgramVertexDestroy(mID);
}
public void bindAllocation(MatrixAllocation va) {
mRS.nProgramVertexBindAllocation(mID, va.mAlloc.mID);
}