summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorbruvzg <7645683+bruvzg@users.noreply.github.com>2019-07-12 16:18:30 +0300
committerbruvzg <7645683+bruvzg@users.noreply.github.com>2020-02-11 11:57:34 +0100
commitb456bfad5cee3922f55621bf7c133cc67337636a (patch)
treed3c77c49894591ea67dac3ad1551e9f36206b9c1 /core
parenteb48be51dbe97aa4fbbbe0d0ebd8a98bee6b263e (diff)
Add runtime GLES2 / Vulkan context selection.
Diffstat (limited to 'core')
-rw-r--r--core/os/os.cpp6
-rw-r--r--core/os/os.h3
2 files changed, 3 insertions, 6 deletions
diff --git a/core/os/os.cpp b/core/os/os.cpp
index 0ce1151601..13be4a5c37 100644
--- a/core/os/os.cpp
+++ b/core/os/os.cpp
@@ -689,13 +689,11 @@ int OS::get_video_driver_count() const {
const char *OS::get_video_driver_name(int p_driver) const {
switch (p_driver) {
- case VIDEO_DRIVER_VULKAN:
- return "Vulkan";
case VIDEO_DRIVER_GLES2:
return "GLES2";
- case VIDEO_DRIVER_GLES3:
+ case VIDEO_DRIVER_VULKAN:
default:
- return "GLES3";
+ return "Vulkan";
}
}
diff --git a/core/os/os.h b/core/os/os.h
index cd84b07de7..1bb910cb0d 100644
--- a/core/os/os.h
+++ b/core/os/os.h
@@ -181,9 +181,8 @@ public:
virtual void get_fullscreen_mode_list(List<VideoMode> *p_list, int p_screen = 0) const = 0;
enum VideoDriver {
- VIDEO_DRIVER_GLES3,
- VIDEO_DRIVER_GLES2,
VIDEO_DRIVER_VULKAN,
+ VIDEO_DRIVER_GLES2,
VIDEO_DRIVER_MAX,
};