summaryrefslogtreecommitdiff
path: root/include/mbgl/renderer/mode.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/renderer/mode.hpp')
-rw-r--r--include/mbgl/renderer/mode.hpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/mbgl/renderer/mode.hpp b/include/mbgl/renderer/mode.hpp
new file mode 100644
index 0000000000..6ff42d8058
--- /dev/null
+++ b/include/mbgl/renderer/mode.hpp
@@ -0,0 +1,18 @@
+#pragma once
+
+#include <cstdint>
+
+namespace mbgl {
+
+using EnumType = uint32_t;
+
+// 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 : EnumType {
+ Unique,
+ Shared,
+};
+
+} // namespace mbgl