Themaister/RetroArch — pull request #177 by CatalystG (2013-04-11 01:53:11+00:00)
Title: (BlackBerry) Fix PlayBook crash

You'll probably want to take a look at the changes. It looks like the crash was caused by a couple different things. The main one was that on PB, it doesn't look like you can create another surface without destroying the first (EGL_BAD_ALLOC). We created one for RGUI at the start, then recreated it for the core. Once I called uninit, then I couldn't reinit EGL anymore. Not releasing the EGL thread fixed that on the PB. That was my first commit here, but it caused BB10 to crash while setting up the core (a side effect of calling uninit I think). I tried to mimic how a core is launched when setting up RGUI as that always seemed to work, by using init_drivers rather than global_init_drivers. It's working on both now, though let me know if this isn't the best way.