mirror of https://github.com/axmolengine/axmol.git
4211cc7fd1
It's crucial to execute various tasks synchonized with the rendering loop / thread, but this ability (runOnGLThread) got removed with the NativeActivity transitions a few days ago. This patch adds this method back again. Why can't we just use runOnUiThread()? Because it seems not to be synchronized properly and can cause broken OpenGL textures or even the whole app to crash. Isn't there a better way to get into the mainloop? I hope so! But I'm not a experienced Android developer and this solution is quite simple / the only one that worked without any problems. |
||
---|---|---|
.. | ||
.settings | ||
res | ||
src/org/cocos2dx/lib | ||
.classpath | ||
.project | ||
AndroidManifest.xml | ||
ant.properties | ||
build.xml | ||
proguard-project.txt | ||
project.properties |