[core] Added save/restore capabilities to GL config

This commit is contained in:
Bruno de Oliveira Abinader
2015-10-20 12:52:40 -07:00
parent a1c53d92e5
commit 54858dae8c
3 changed files with 130 additions and 1 deletions

View File

@@ -10,6 +10,10 @@ enum class MapMode : uint8_t {
Still, // a once-off still image
};
// We can avoid redundant GL calls when it is known that the GL context is not
// being shared. In a shared GL context case, we need to make sure that the
// correct GL configurations are in use - they might have changed between render
// calls.
enum class GLContextMode : uint8_t {
Unique,
Shared,