render callback now gets context. glew init now moved to gui