Fixed code in `gl_back_end`

Closes https://github.com/PistonDevelopers/piston/issues/311
Closes https://github.com/PistonDevelopers/piston/issues/315