Call glewInit once for each rendering context? or exactly once for the whole app?
I have a question about how to (correctly) use glewInit() . Assume I have an multiple-window application, should I call glewInit() exactly once at application (i.e., global) level? or call glewInit() for each window (i.e., each OpenGL rendering context)? Depending on the GLEW build being used the watertight method is to call glewInit after each and every context change ! With X11/GLX functions pointers are invariant. But in Windows OpenGL function pointers are specific to each context. Some builds of GLEW are multi context aware, while others are not. So to cover that case, technically you