Hi,
I'm currently trying to reload textyre asynchronously when the game is
restored from background. To do this I'm reloading texures in the OnLoad
method creating a new thread. Unfortunatelly, when in the new thread I call
MakeCurrent an exception is thrown.
protected override OnLoad(EventArgs e)
{
MakeCurrent();
if(_mustReloadTextures)
{
ThreadPool.QueueUserWorkItem(state =>
{
MakeCurrent(); // <== EXCEPTION!
ReloadTextures();
}, null);
}
Run();
}
Any hint?
--
View this message in context:
http://mono-for-android.1047100.n5.nabble.com/Can-t-detach-AndroidGraphicsContext-from-current-thead-and-attach-to-another-tp5520013p5533670.html
Sent from the Mono for Android mailing list archive at Nabble.com.
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid