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
No known key found for this signature in database
GPG key ID: 39E8F8BE30B0A49C
8 changed files with 15 additions and 21 deletions

View file

@ -263,7 +263,7 @@ public class Godot extends Fragment implements SensorEventListener, IDownloaderC
GodotLib.setup(command_line);
final String videoDriver = GodotLib.getGlobal("rendering/driver/driver_name");
if (videoDriver.equals("Vulkan")) {
if (videoDriver.equals("vulkan")) {
mRenderView = new GodotVulkanRenderView(activity, this);
} else {
mRenderView = new GodotGLRenderView(activity, this, xrMode, use_32_bits,