diff options
author | Alex Sakhartchouk <alexst@google.com> | 2012-04-11 14:04:23 -0700 |
---|---|---|
committer | Alex Sakhartchouk <alexst@google.com> | 2012-04-11 14:04:23 -0700 |
commit | 918e840628a0b40a95fd42618f604ea5a44aebae (patch) | |
tree | cbaffd8e29056a5a92decce2ca0982cf4315bcbf /graphics/java/android/renderscript/ProgramVertexFixedFunction.java | |
parent | 5713c9cfa9a0ed7625c8a48925a5c33b2c070460 (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.java | 2 |
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(); |