commit | 74c2598cf1f4e5d28ccde7f403fdba5b0df3cd08 | [log] [tgz] |
---|---|---|
author | Adam Bodnar <abodnar@google.com> | Wed Jul 08 15:36:17 2020 -0700 |
committer | Adam Bodnar <abodnar@google.com> | Fri Jul 10 17:10:17 2020 -0700 |
tree | ef42995b69f7f7e8e065167c15f9bd88add788e4 | |
parent | 68a510ac32ab3d95925033367fe3fa6e77907520 [diff] |
Fix pointer arithmetic for ByteBuffers with non-zero positions When initializing a gpu resource from a Java ByteBuffer with a non-zero position, most functions aren't releasing the correct pointer and subsequently crash the app. Bug: 67109954 Test: build, flash, atest android.opengl.cts.ByteBufferTest Change-Id: Id0910efd8c5ed6e00ea10eab89e77d97fe642d2b