Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit e6c90976 authored by Jason Macnak's avatar Jason Macnak
Browse files

Load ANGLEResetDisplayPlatform via dlsym

... which is slightly more defensive than loading the function via
eglGetProcAddress. When loading the function via eglGetProcAdress,
the returned function pointer will be one of the ext forwardering
helpers (__glExtFwd0 in this observed case). The process can then
crash if eglTerminate() is called on a new thread that has not yet
called eglMakeCurrent() where the thread local gl_hooks_t is 0x0.

Bug: b/181162754
Test: HeifWriterTest on Cuttlefish w/ SwANGLE
Change-Id: Ia8e55c899f9fde91215ce75313b33517f8440fee
parent 01803f65
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment