diff options
author | Pablo Ceballos <pceballos@google.com> | 2016-01-29 15:43:00 -0800 |
---|---|---|
committer | Pablo Ceballos <pceballos@google.com> | 2016-02-09 16:09:28 -0800 |
commit | 59fb43e7bdc607f49b301644e4300485f352b103 (patch) | |
tree | 1a6118921069fd30524a2cab0256bb915c5e5b5e /opengl | |
parent | 93f04f89202d269fbb38c6f2ffacc3fa01728bbc (diff) |
Fix glGetTransformFeedbackVarying JNI
- Deprecate the broken version that takes a byte argument.
- Implement a new version that takes a byte buffer argument.
Bug 19478262
Change-Id: I5ea4f11940e93b5964b66dbf5700b7ff8b80339e
Diffstat (limited to 'opengl')
-rw-r--r-- | opengl/java/android/opengl/GLES30.java | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/opengl/java/android/opengl/GLES30.java b/opengl/java/android/opengl/GLES30.java index 342ffa41993e..6cc6bfc5209f 100644 --- a/opengl/java/android/opengl/GLES30.java +++ b/opengl/java/android/opengl/GLES30.java @@ -889,7 +889,10 @@ public class GLES30 extends GLES20 { ); // C function void glGetTransformFeedbackVarying ( GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name ) - + /** + * @deprecated + * Use the version that takes a ByteBuffer as the last argument, or the versions that return a String. + * */ public static native void glGetTransformFeedbackVarying( int program, int index, @@ -902,6 +905,18 @@ public class GLES30 extends GLES20 { // C function void glGetTransformFeedbackVarying ( GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name ) + public static native void glGetTransformFeedbackVarying( + int program, + int index, + int bufsize, + java.nio.IntBuffer length, + java.nio.IntBuffer size, + java.nio.IntBuffer type, + java.nio.ByteBuffer name + ); + + // C function void glGetTransformFeedbackVarying ( GLuint program, GLuint index, GLsizei bufSize, GLsizei *length, GLint *size, GLenum *type, GLchar *name ) + public static native String glGetTransformFeedbackVarying( int program, int index, |