I notice that the current OpenGL context is made active every time a frame is drawn. Is there a particular reason for this? It seems like you could just make the context active once at the beginning of the program. Or am I wrong? I’m just wondering because I’ve heard that there is some overhead for making a context active.
Strangely though, when I do try to just call it once at the beginning of the program, it doesn’t seem to work, though I can’t figure out why.
Anyone know what’s going on here?