static bool test_without_glproxy(void) { glBegin(GL_TRIANGLES); { /* Hit a base entrypoint that won't call gl_version() */ glVertex4f(0, 0, 0, 0); /* Hit an entrypoint that will call probably call gl_version() */ glMultiTexCoord3f(GL_TEXTURE0, 0.0, 0.0, 0.0); /* Hit an entrypoint that will probably call * glproxy_conservative_has_extension(); */ if (has_argb2101010) { glTexCoordP3ui(GL_UNSIGNED_INT_2_10_10_10_REV, 0); } } glEnd(); /* We can't make any assertions about error presence this time * around. This test is just trying to catch segfaults. */ return true; }
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_GL33_nglTexCoordP3ui(JNIEnv *__env, jclass clazz, jint type, jint coords, jlong __functionAddress) { glTexCoordP3uiPROC glTexCoordP3ui = (glTexCoordP3uiPROC)(intptr_t)__functionAddress; UNUSED_PARAMS(__env, clazz) glTexCoordP3ui(type, coords); }