[GPU] Improve readability of initialization errors and remove references to OpenGL.

This commit is contained in:
gibbed 2018-07-01 16:49:36 -05:00
parent 94d1106386
commit ba7dc6b2d7
3 changed files with 19 additions and 9 deletions

View File

@ -68,10 +68,14 @@ X_STATUS GraphicsSystem::Setup(cpu::Processor* processor,
if (!processor_context) {
xe::FatalError(
"Unable to initialize graphics context. Xenia requires OpenGL 4.5 or "
"Vulkan support. Ensure you have the latest drivers for your GPU and "
"that it supports OpenGL or Vulkan. See http://xenia.jp/faq/ for "
"more information.");
"Unable to initialize graphics context. Xenia requires Vulkan "
"support.\n"
"\n"
"Ensure you have the latest drivers for your GPU and "
"that it supports Vulkan.\n"
"\n"
"See http://xenia.jp/faq/ for more information and a list of "
"supported GPUs.");
return X_STATUS_UNSUCCESSFUL;
}
}

View File

@ -30,9 +30,12 @@ std::unique_ptr<VulkanProvider> VulkanProvider::Create(Window* main_window) {
if (!provider->Initialize()) {
xe::FatalError(
"Unable to initialize Vulkan graphics subsystem.\n"
"\n"
"Ensure you have the latest drivers for your GPU and that it "
"supports Vulkan. See http://xenia.jp/faq/ for more information and a "
"list of supported GPUs.");
"supports Vulkan.\n"
"\n"
"See http://xenia.jp/faq/ for more information and a list of supported "
"GPUs.");
return nullptr;
}
return provider;

View File

@ -399,9 +399,12 @@ const char* to_string(VkPresentModeKHR present_mode) {
void FatalVulkanError(std::string error) {
xe::FatalError(
error +
"\nEnsure you have the latest drivers for your GPU and that it supports "
"Vulkan. See http://xenia.jp/faq/ for more information and a list"
"of supported GPUs.");
"\n\n"
"Ensure you have the latest drivers for your GPU and that it supports "
"Vulkan.\n"
"\n"
"See http://xenia.jp/faq/ for more information and a list of supported "
"GPUs.");
}
void CheckResult(VkResult result, const char* action) {