Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
1 changed file
with
31 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters