replicant-frameworks_native/opengl/tools/glgen/stubs/gles11/glGetStringi.cpp
Jesse Hall fa4c1170ac Special-case glGetStringi
Modeled on the existing glGetString special-case.

Bug: 8566953
Change-Id: Icc6b23ab53b00510368900ad99c92028253dc797
2013-04-10 22:00:33 -07:00

9 lines
288 B
C++

/* const GLubyte * glGetStringi ( GLenum name, GLuint index ) */
static jstring
android_glGetStringi__II
(JNIEnv *_env, jobject _this, jint name, jint index) {
const GLubyte* _chars = glGetStringi((GLenum)name, (GLuint)index);
return _env->NewStringUTF((const char*)_chars);
}