610bbf2b6f
Bug: 8566953 Change-Id: I11a7394eb46f229fd3ae716e77487a45bac6ed53
12 lines
425 B
C++
12 lines
425 B
C++
/* void glGetBufferPointerv ( GLenum target, GLenum pname, GLvoid** params ) */
|
|
static jobject
|
|
android_glGetBufferPointerv__II
|
|
(JNIEnv *_env, jobject _this, jint target, jint pname) {
|
|
GLint64 _mapLength;
|
|
GLvoid* _p;
|
|
glGetBufferParameteri64v((GLenum)target, GL_BUFFER_MAP_LENGTH, &_mapLength);
|
|
glGetBufferPointerv((GLenum)target, (GLenum)pname, &_p);
|
|
return _env->NewDirectByteBuffer(_p, _mapLength);
|
|
}
|
|
|