void GLHelper::AssertValidContext() { EGLContext cntx = eglGetCurrentContext(); if (cntx != GLHelper::_eglPBufferContext && cntx != GLHelper::_eglSurfaceContext) { U_THROW(::g::Uno::Exception::New2(uNewStringUtf8("GLHelper::AssertValidContext: Invalid GL context. Not our pbuffer context or surface context",92))); } }
void __Register_Finalizer() { JNIEnv* jni = ::g::Android::Base::JNI::GetEnvPtr(); JNINativeMethod nativeFunc = {(char* const)"Finalize", (char* const)"(J)V", (void *)&__JWrapper_Finalizer}; jclass cls = reinterpret_cast<jclass>(jni->NewGlobalRef(::g::Android::Base::JNI::LoadClass(::g::Android::Base::JNI::GetEnvPtr(), "com.Bindings.UnoHelper"))); jint attached = ::g::Android::Base::JNI::GetEnvPtr()->RegisterNatives(cls, &nativeFunc, 1); if (attached < 0) { U_THROW(::g::Uno::Exception::New2(uNewStringUtf8("Could not register the instantiation callback function",54))); } }