JNIEXPORT void JNICALL Java_org_lwjgl_opengles_APPLESync_nglGetSyncivAPPLE__JIIJJ(JNIEnv *__env, jclass clazz, jlong syncAddress, jint pname, jint bufSize, jlong lengthAddress, jlong valuesAddress) { glGetSyncivAPPLEPROC glGetSyncivAPPLE = (glGetSyncivAPPLEPROC)tlsGetFunction(384); intptr_t sync = (intptr_t)syncAddress; intptr_t length = (intptr_t)lengthAddress; intptr_t values = (intptr_t)valuesAddress; UNUSED_PARAM(clazz) glGetSyncivAPPLE(sync, pname, bufSize, length, values); }
bool CRendererVTB::NeedBuffer(int idx) { CRenderBuffer &buf = m_vtbBuffers[idx]; if (buf.m_fence && glIsSyncAPPLE(buf.m_fence)) { int syncState = GL_UNSIGNALED_APPLE; glGetSyncivAPPLE(buf.m_fence, GL_SYNC_STATUS_APPLE, 1, nullptr, &syncState); if (syncState == GL_SIGNALED_APPLE) return false; } return true; }