-
Notifications
You must be signed in to change notification settings - Fork 6k
Fix problem that using multi-engines, sometimes OpenGL would crash be… #17366
Fix problem that using multi-engines, sometimes OpenGL would crash be… #17366
Conversation
…cause of invalid EAGLContext.
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
1 similar comment
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
@googlebot I signed it! |
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
1 similar comment
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ooh, thats subtle. Thanks for the fix. Can you clang-format this patch please? This is whats causing the presubmit failures. LGTM otherwise.
Thanks. |
…crash be cause of invalid EAGLContext (flutter/engine#17366)
…cause of invalid EAGLContext.
We are using multi-engines in our app. So there are chances that an iOS render target would be deallocated.
We found random crash and finally found that when ios_render_target_gl is being destructed.
The first line of this function "EAGLContext* context = EAGLContext.currentContext;". The context is actually equal to "context_.get()". So an invalid opengl context is set to current.