Continue error check improvements and write some docs.

Change-Id: I345b08490da21d9ee715ff1ddc80c1a816b579f4
This commit is contained in:
Jason Sams
2010-11-09 17:11:40 -08:00
parent 641b0628cd
commit 06d69de788
15 changed files with 133 additions and 132 deletions

View File

@@ -54,7 +54,7 @@ public class Program extends BaseObj {
a.getType().getID() != mConstants[slot].getID()) {
throw new IllegalArgumentException("Allocation type does not match slot type.");
}
mRS.nProgramBindConstants(mID, slot, a.mID);
mRS.nProgramBindConstants(getID(), slot, a.getID());
}
public void bindTexture(Allocation va, int slot)
@@ -64,7 +64,7 @@ public class Program extends BaseObj {
throw new IllegalArgumentException("Slot ID out of range.");
}
mRS.nProgramBindTexture(mID, slot, va.mID);
mRS.nProgramBindTexture(getID(), slot, va.getID());
}
public void bindSampler(Sampler vs, int slot)
@@ -74,7 +74,7 @@ public class Program extends BaseObj {
throw new IllegalArgumentException("Slot ID out of range.");
}
mRS.nProgramBindSampler(mID, slot, vs.mID);
mRS.nProgramBindSampler(getID(), slot, vs.getID());
}