Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 986af188 authored by Romain Guy's avatar Romain Guy
Browse files

Guarantee that glMapBufferRange/glGetBufferPointv return a ByteBuffer

Bug: 24950082
Test: CtsGraphicsTestCases
Change-Id: I2835128bbd5d1b8a234324323c74eca6e55d8726
parent 1f071dd8
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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,