Skip to content

Commit

Permalink
BlueVK: use slog for dlopen error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
prideout committed Feb 11, 2021
1 parent 6fa8f48 commit 4d18c0d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libs/bluevk/src/BlueVKLinuxAndroid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
#include <stdio.h>
#include <stdlib.h>

#include <utils/Log.h>

namespace bluevk {

static void* module = nullptr;
Expand Down Expand Up @@ -49,8 +51,7 @@ bool loadLibrary() {

module = dlopen(path, RTLD_NOW | RTLD_LOCAL);
if (module == nullptr) {
printf("Unable to load Vulkan from %s\n", path);
fflush(stdout);
utils::slog.e << "Unable to load Vulkan from " << path << utils::io::endl;
}
return module != nullptr;
}
Expand Down

0 comments on commit 4d18c0d

Please sign in to comment.