Vulkan: Allow C++ to determine use of JavaGL.

Based on config - this way we can enable Vulkan more easily even before we
determine why some devices don't like C++ EGL for GLES.
This commit is contained in:
Unknown W. Brackets
2016-07-01 14:05:15 -07:00
parent 0bf65150d6
commit 4d4e334fc4
4 changed files with 18 additions and 5 deletions
+7
View File
@@ -230,6 +230,13 @@ std::string NativeQueryConfig(std::string query) {
return std::string(temp);
} else if (query == "force44khz") {
return std::string("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 "";
}