Take OpenGL version by value

Closes https://github.com/PistonDevelopers/sdl2_game_window/issues/38
Merge pull request #39 from bvssvni/master

Take OpenGL version by value