Please sign in to comment.
In OpenGL Overlay, make code and context swapping more clear
* Declare scope on member variables * Move GL context initialization logic into separate method * Make GL context swapping logic more clear (switch and restore) * Effectively changes: When a new Context object is created, it switches the OpenGL context, restores the old, and then in the draw call switches to the context again. Before, it would switch to the new context just once.
- Loading branch information...