renderer_vulkan: Misc fixes (#6974)

* vk_platform: Check if library was loaded

* pica_to_vk: Dont crash on unknow blend equation
This commit is contained in:
GPUCode 2023-09-15 00:21:12 +03:00 committed by GitHub
parent ee3eab5054
commit 30fcdc5474
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 2 deletions

View file

@ -16,7 +16,7 @@ public:
~DynamicLibrary();
/// Returns true if the library is loaded, otherwise false.
[[nodiscard]] bool IsLoaded() {
[[nodiscard]] bool IsLoaded() const noexcept {
return handle != nullptr;
}