replicant-frameworks_native/opengl/tools/glgen/stubs/gles11/glGetBufferPointerv.cpp
Jesse Hall 610bbf2b6f Special-case glGetBufferPointerv
Bug: 8566953
Change-Id: I11a7394eb46f229fd3ae716e77487a45bac6ed53
2013-04-10 22:00:18 -07:00

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);
}