[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) {
|
if (!processor_context) {
|
||||||
xe::FatalError(
|
xe::FatalError(
|
||||||
"Unable to initialize graphics context. Xenia requires OpenGL 4.5 or "
|
"Unable to initialize graphics context. Xenia requires Vulkan "
|
||||||
"Vulkan support. Ensure you have the latest drivers for your GPU and "
|
"support.\n"
|
||||||
"that it supports OpenGL or Vulkan. See http://xenia.jp/faq/ for "
|
"\n"
|
||||||
"more information.");
|
"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;
|
return X_STATUS_UNSUCCESSFUL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,9 +30,12 @@ std::unique_ptr<VulkanProvider> VulkanProvider::Create(Window* main_window) {
|
||||||
if (!provider->Initialize()) {
|
if (!provider->Initialize()) {
|
||||||
xe::FatalError(
|
xe::FatalError(
|
||||||
"Unable to initialize Vulkan graphics subsystem.\n"
|
"Unable to initialize Vulkan graphics subsystem.\n"
|
||||||
|
"\n"
|
||||||
"Ensure you have the latest drivers for your GPU and that it "
|
"Ensure you have the latest drivers for your GPU and that it "
|
||||||
"supports Vulkan. See http://xenia.jp/faq/ for more information and a "
|
"supports Vulkan.\n"
|
||||||
"list of supported GPUs.");
|
"\n"
|
||||||
|
"See http://xenia.jp/faq/ for more information and a list of supported "
|
||||||
|
"GPUs.");
|
||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
return provider;
|
return provider;
|
||||||
|
|
|
@ -399,9 +399,12 @@ const char* to_string(VkPresentModeKHR present_mode) {
|
||||||
void FatalVulkanError(std::string error) {
|
void FatalVulkanError(std::string error) {
|
||||||
xe::FatalError(
|
xe::FatalError(
|
||||||
error +
|
error +
|
||||||
"\nEnsure you have the latest drivers for your GPU and that it supports "
|
"\n\n"
|
||||||
"Vulkan. See http://xenia.jp/faq/ for more information and a list"
|
"Ensure you have the latest drivers for your GPU and that it supports "
|
||||||
"of supported GPUs.");
|
"Vulkan.\n"
|
||||||
|
"\n"
|
||||||
|
"See http://xenia.jp/faq/ for more information and a list of supported "
|
||||||
|
"GPUs.");
|
||||||
}
|
}
|
||||||
|
|
||||||
void CheckResult(VkResult result, const char* action) {
|
void CheckResult(VkResult result, const char* action) {
|
||||||
|
|
Loading…
Reference in New Issue