modified OpenGL sample so that it uses sdl2 module