Guarantee that glMapBufferRange/glGetBufferPointv return a ByteBuffer

Bug: 24950082
Test: CtsGraphicsTestCases
Change-Id: I2835128bbd5d1b8a234324323c74eca6e55d8726
This commit is contained in:
Romain Guy
2016-11-30 17:14:57 -08:00
parent 1f071dd8c3
commit 986af188b6

View File

@@ -590,6 +590,10 @@ public class GLES30 extends GLES20 {
// C function void glGetBufferPointerv ( GLenum target, GLenum pname, GLvoid** params )
/**
* The {@link java.nio.Buffer} instance returned by this method is guaranteed
* to be an instance of {@link java.nio.ByteBuffer}.
*/
public static native java.nio.Buffer glGetBufferPointerv(
int target,
int pname
@@ -761,6 +765,10 @@ public class GLES30 extends GLES20 {
// C function GLvoid * glMapBufferRange ( GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access )
/**
* The {@link java.nio.Buffer} instance returned by this method is guaranteed
* to be an instance of {@link java.nio.ByteBuffer}.
*/
public static native java.nio.Buffer glMapBufferRange(
int target,
int offset,