Added an assertion for android to catch use of HTTP on the main thread (not allowed by the OS)
Replaced an old-style GL function call with a newer equivalent.