1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Fix new projects always being created with OpenGL

Only Vulkan is fully implemented for now, so OpenGL isn't available
in the project manager yet.

This also makes the rendering driver checks use lowercase names
everywhere for consistency.
This commit is contained in:
Hugo Locurcio
2021-11-01 22:04:36 +01:00
parent 96ce806b2f
commit 665d29c16d
8 changed files with 15 additions and 21 deletions

View File

@@ -300,9 +300,9 @@ void EditorExportPlatformJavaScript::get_preset_features(const Ref<EditorExportP
if (p_preset->get("vram_texture_compression/for_mobile")) {
String driver = ProjectSettings::get_singleton()->get("rendering/driver/driver_name");
if (driver == "OpenGL3") {
if (driver == "opengl3") {
r_features->push_back("etc");
} else if (driver == "Vulkan") {
} else if (driver == "vulkan") {
// FIXME: Review if this is correct.
r_features->push_back("etc2");
}