Fix for #486

Needs https://github.com/gfx-rs/gfx_gl/pull/5 and https://github.com/bjz/gl-rs/pull/253 to be merged to work.