summaryrefslogtreecommitdiff
path: root/graphics/java/android/renderscript/ProgramVertexFixedFunction.java
diff options
context:
space:
mode:
authorAlex Sakhartchouk <alexst@google.com>2012-04-11 14:04:23 -0700
committerAlex Sakhartchouk <alexst@google.com>2012-04-11 14:04:23 -0700
commit918e840628a0b40a95fd42618f604ea5a44aebae (patch)
treecbaffd8e29056a5a92decce2ca0982cf4315bcbf /graphics/java/android/renderscript/ProgramVertexFixedFunction.java
parent5713c9cfa9a0ed7625c8a48925a5c33b2c070460 (diff)
Unhiding J API's for Renderscript.
Change-Id: I8c2d43ccca94549bc6ca1a914106567ccc125503
Diffstat (limited to 'graphics/java/android/renderscript/ProgramVertexFixedFunction.java')
-rw-r--r--graphics/java/android/renderscript/ProgramVertexFixedFunction.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/java/android/renderscript/ProgramVertexFixedFunction.java b/graphics/java/android/renderscript/ProgramVertexFixedFunction.java
index fac4c3dd2f1d..54f21b834efc 100644
--- a/graphics/java/android/renderscript/ProgramVertexFixedFunction.java
+++ b/graphics/java/android/renderscript/ProgramVertexFixedFunction.java
@@ -204,7 +204,7 @@ public class ProgramVertexFixedFunction extends ProgramVertex {
public Constants(RenderScript rs) {
Type constInputType = ProgramVertexFixedFunction.Builder.getConstantInputType(rs);
mAlloc = Allocation.createTyped(rs, constInputType);
- int bufferSize = constInputType.getElement().getSizeBytes()*
+ int bufferSize = constInputType.getElement().getBytesSize()*
constInputType.getCount();
mIOBuffer = new FieldPacker(bufferSize);
mModel = new Matrix4f();