zirman / arcore-filament-example-app

ARCore Filament Example App
MIT License
97 stars 15 forks source link

[Question]: Why are we explicitly creating an OpenGL Context ? #17

Closed GokulDas027 closed 2 years ago

GokulDas027 commented 2 years ago

Why are we explicitly creating an OpenGL Context for Filament Engine while I couldn't find it anywhere in Filament Sample Apps (passing context is optional and if not, filament uses default context).

Is there any performance or other benefits in creating it explicitly?

zirman commented 2 years ago

I think I originally got this code from Sceneform. I don't know if there is any benefit to creating the OpenGL context. I don't think there is.

GokulDas027 commented 2 years ago

Okay, Thanks for the clarification.

GokulDas027 commented 2 years ago

@zirman I tried using filament instance without creating OpenGL context, And ArCore produced MissingGlContextException