Removed platform dependent code to transfer OpenGL contexts and use the proper SDL functions instead
was a bit to hasty with removing platform dependent code, we still need autreleasepools, but I moved them in the correct place, so the pool in the graphic thread gets drained regularly
fix text cursor moving left and right
Merge branch 'master' into clipboard