Created
March 28, 2016 17:42
-
-
Save jesusdesantos/1038b749b4908c5dc29e to your computer and use it in GitHub Desktop.
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
How do we detect when Unity recreates the GL context? | |
1. By using XXXGetCurrentContext (eg: glXGetCurrentContext). Problem: sometimes the context is different but the pointer returned by XXXGetCurrentContext is the same. | |
2. By using glIsBuffer(name) against a VAO. This is not 100% safe because 'name' could be a valid handle in the current context, one created by Unity for example. | |
3. Using the native callback API (UnityGfxDeviceEventType). Problem: not implemented. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment