Based on !1773 (closed), merge that before merging this!
Visual portal (linedef type 40) support for OpenGL. Work in progress!