From f65a8aa74383cada280a8ba6170a0ff57fccc52c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Thu, 22 Dec 2022 09:59:03 +0100 Subject: [PATCH] Oops, deleted a few lines too much in #16634 See #16634 --- UI/NativeApp.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/UI/NativeApp.cpp b/UI/NativeApp.cpp index 06dc99da88..0c98c0cadb 100644 --- a/UI/NativeApp.cpp +++ b/UI/NativeApp.cpp @@ -254,6 +254,13 @@ std::string NativeQueryConfig(std::string query) { return std::string(temp); } else if (query == "sustainedPerformanceMode") { return std::string(g_Config.bSustainedPerformanceMode ? "1" : "0"); + } else if (query == "androidJavaGL") { + // If we're using Vulkan, we say no... need C++ to use Vulkan. + if (GetGPUBackend() == GPUBackend::VULKAN) { + return "false"; + } + // Otherwise, some devices prefer the Java init so play it safe. + return "true"; } else { return ""; }