Removed platform dependent code to transfer OpenGL contexts and use the proper SDL functions instead