summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorStephen Hines <srhines@google.com>2014-06-19 03:04:32 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-06-18 22:48:04 +0000
commitb02dadd47c20b65569413cb4575c6050fe7b609f (patch)
treef09bd76126db83cd60fd5da2b74addd537bfb91a /rs/java/android/renderscript/ProgramVertexFixedFunction.java
parent8e21e21550eddce01ad06fdf05b342993bf44c6a (diff)
parentfa1275a6e743c4661cc3d5e05bb89559a8e59727 (diff)
Merge "Create FieldPacker.getPos() to get the actual amount of data used for FP."
Diffstat (limited to 'rs/java/android/renderscript/ProgramVertexFixedFunction.java')
-rw-r--r--rs/java/android/renderscript/ProgramVertexFixedFunction.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/rs/java/android/renderscript/ProgramVertexFixedFunction.java b/rs/java/android/renderscript/ProgramVertexFixedFunction.java
index a350154c456c..702659780dbb 100644
--- a/rs/java/android/renderscript/ProgramVertexFixedFunction.java
+++ b/rs/java/android/renderscript/ProgramVertexFixedFunction.java
@@ -249,6 +249,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);
}