am c5b11fcc: am ff83ed2d: am b02dadd4: Merge "Create FieldPacker.getPos() to get the actual amount of data used for FP."

* commit 'c5b11fcc1f4fc4fba988218d0a99a19690398a56':
  Create FieldPacker.getPos() to get the actual amount of data used for FP.
This commit is contained in:
Stephen Hines
2014-06-19 03:26:15 +00:00
committed by Android Git Automerger
3 changed files with 21 additions and 7 deletions

View File

@@ -245,6 +245,9 @@ public class ProgramVertexFixedFunction extends ProgramVertex {
for(int i = 0; i < 16; i ++) {
mIOBuffer.addF32(m.mMat[i]);
}
// Reset the buffer back to the end, since we want to flush all of
// the contents back (and not just what we wrote now).
mIOBuffer.reset(mIOBuffer.getData().length);
mAlloc.setFromFieldPacker(0, mIOBuffer);
}