diff options
Diffstat (limited to 'opengl/tools/glgen/stubs/gles11/glBindVertexBuffer.cpp')
-rw-r--r-- | opengl/tools/glgen/stubs/gles11/glBindVertexBuffer.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/opengl/tools/glgen/stubs/gles11/glBindVertexBuffer.cpp b/opengl/tools/glgen/stubs/gles11/glBindVertexBuffer.cpp new file mode 100644 index 0000000..b3b70cc --- /dev/null +++ b/opengl/tools/glgen/stubs/gles11/glBindVertexBuffer.cpp @@ -0,0 +1,15 @@ +/* void glBindVertexBuffer ( GLuint bindingindex, GLuint buffer, GLintptr offset, GLsizei stride ) */ +static void +android_glBindVertexBuffer__IIJI + (JNIEnv *_env, jobject _this, jint bindingindex, jint buffer, jlong offset, jint stride) { + if (sizeof(GLintptr) != sizeof(jlong) && (offset < LONG_MIN || offset > LONG_MAX)) { + jniThrowException(_env, "java/lang/IllegalArgumentException", "offset too large"); + return; + } + glBindVertexBuffer( + (GLuint)bindingindex, + (GLuint)buffer, + (GLintptr)offset, + (GLsizei)stride + ); +} |