mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-08 04:25:37 +00:00
VulkanDevice: Hopefully fix init under Vulkan 1.0 drivers
This commit is contained in:
parent
f25302c847
commit
d69d25431e
@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
#include "common/assert.h"
|
#include "common/assert.h"
|
||||||
#include "common/dynamic_library.h"
|
#include "common/dynamic_library.h"
|
||||||
|
#include "common/error.h"
|
||||||
#include "common/log.h"
|
#include "common/log.h"
|
||||||
|
|
||||||
#include <cstdarg>
|
#include <cstdarg>
|
||||||
@ -73,7 +74,7 @@ bool Vulkan::LoadVulkanLibrary(Error* error)
|
|||||||
bool required_functions_missing = false;
|
bool required_functions_missing = false;
|
||||||
|
|
||||||
#define VULKAN_MODULE_ENTRY_POINT(name, required) \
|
#define VULKAN_MODULE_ENTRY_POINT(name, required) \
|
||||||
if (!s_vulkan_library.GetSymbol(#name, &name)) \
|
if (!s_vulkan_library.GetSymbol(#name, &name) && required) \
|
||||||
{ \
|
{ \
|
||||||
ERROR_LOG("Vulkan: Failed to load required module function {}", #name); \
|
ERROR_LOG("Vulkan: Failed to load required module function {}", #name); \
|
||||||
required_functions_missing = true; \
|
required_functions_missing = true; \
|
||||||
@ -83,6 +84,7 @@ bool Vulkan::LoadVulkanLibrary(Error* error)
|
|||||||
|
|
||||||
if (required_functions_missing)
|
if (required_functions_missing)
|
||||||
{
|
{
|
||||||
|
Error::SetStringView(error, "One or more required functions are missing. The log contains more information.");
|
||||||
ResetVulkanLibraryFunctionPointers();
|
ResetVulkanLibraryFunctionPointers();
|
||||||
s_vulkan_library.Close();
|
s_vulkan_library.Close();
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user