Guarantee that glMapBufferRange/glGetBufferPointv return a ByteBuffer
Bug: 24950082 Test: CtsGraphicsTestCases Change-Id: I2835128bbd5d1b8a234324323c74eca6e55d8726
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user