[GPU] Improve readability of initialization errors and remove references to OpenGL.
This commit is contained in:
parent
94d1106386
commit
ba7dc6b2d7
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue