void PerfQueryGLESNV::DisableQuery(PerfQueryGroup type) { // stop query if (type == PQG_ZCOMP_ZCOMPLOC || type == PQG_ZCOMP) { glEndOcclusionQueryNV(); } }
//------------------------------------------------------------------ void GLHardwareOcclusionQuery::endOcclusionQuery() { if(GLEW_VERSION_1_5 || GLEW_ARB_occlusion_query) { glEndQueryARB(GL_SAMPLES_PASSED_ARB); } else if (GLEW_NV_occlusion_query) { glEndOcclusionQueryNV(); } }
JNIEXPORT void JNICALL Java_org_lwjgl_opengl_NVOcclusionQuery_nglEndOcclusionQueryNV(JNIEnv *env, jclass clazz, jlong function_pointer) { glEndOcclusionQueryNVPROC glEndOcclusionQueryNV = (glEndOcclusionQueryNVPROC)((intptr_t)function_pointer); glEndOcclusionQueryNV(); }