summaryrefslogtreecommitdiff
path: root/opengl
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2016-11-30 17:14:57 -0800
committerRomain Guy <romainguy@google.com>2016-11-30 17:14:57 -0800
commit986af188b67811792b60fdf948129d27ec35dd64 (patch)
tree2bec4eb9b9f9897eda9e78b20106b41cf8f7eeaf /opengl
parent1f071dd8c39dc966ad18abab0528f72730a4af6a (diff)
Guarantee that glMapBufferRange/glGetBufferPointv return a ByteBuffer
Bug: 24950082 Test: CtsGraphicsTestCases Change-Id: I2835128bbd5d1b8a234324323c74eca6e55d8726
Diffstat (limited to 'opengl')
-rw-r--r--opengl/java/android/opengl/GLES30.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/opengl/java/android/opengl/GLES30.java b/opengl/java/android/opengl/GLES30.java
index 74181c513753..3b805d20773c 100644
--- a/opengl/java/android/opengl/GLES30.java
+++ b/opengl/java/android/opengl/GLES30.java
@@ -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,