Turn on OMTC by default; fix crash when acquiring EGL surface
This commit is contained in:
@@ -1036,12 +1036,17 @@ AndroidBridge::RegisterCompositor()
|
||||
return NULL;
|
||||
|
||||
AutoLocalJNIFrame jniFrame(env, 3);
|
||||
|
||||
jmethodID registerCompositor = env->GetStaticMethodID(jFlexSurfaceView, "registerCxxCompositor", "()Lorg/mozilla/gecko/gfx/GLController;");
|
||||
|
||||
jobject glController = env->CallStaticObjectMethod(jFlexSurfaceView, registerCompositor);
|
||||
|
||||
sController.Acquire(env, glController);
|
||||
sController.WaitForValidSurface();
|
||||
sController.SetGLVersion(2);
|
||||
sController.InitGLContext();
|
||||
|
||||
sController.WaitForValidSurface();
|
||||
return sController.GetEGLSurface();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user