Open GoogleCodeExporter opened 9 years ago
My first attempt at this refactoring moved almost everything from
libGLESv2/main.cpp into a libGLESv2/ThreadLocals.cpp, leaving just DllMain in
that file. Interestingly, this caused DllMain to not be included in the
resulting DLL, and consequently the DLL_PROCESS_ATTACH and DLL_THREAD_ATTACH
notifications to not be sent to libGLESv2, causing lots of assertion failures.
It looks to me like it's somewhat just lucky that DllMain is being included in
libGLESv2.dll at this point. I think because it's in a translation unit that
contains other code, it's being pulled in from libANGLE.lib. (Moving DllMain
into the new ThreadLocals.cpp caused it to get picked up.)
I'm going to leave everything in main.cpp and #ifdef out DllMain. This does
need to be rethought as libEGL.dll and libGLESv2.dll begin to share a
libANGLE.dll.
Original comment by kbr@chromium.org
on 11 Oct 2014 at 2:36
Original comment by shannonw...@chromium.org
on 14 Oct 2014 at 5:10
https://chromium-review.googlesource.com/#/c/222955/ did the above minor
refactoring.
Original comment by kbr@chromium.org
on 15 Oct 2014 at 9:38
Original issue reported on code.google.com by
kbr@chromium.org
on 11 Oct 2014 at 1:46