diff options
| author | 2019-11-08 20:01:46 +0000 | |
|---|---|---|
| committer | 2019-11-08 20:01:46 +0000 | |
| commit | b04952f6665b74c89531d2e5ec87df079d987093 (patch) | |
| tree | ebf82df32e1b631affad3a551e139b7489b8be1b /vulkan/libvulkan/driver.cpp | |
| parent | d50863b114ee8556ba41ff4c5e42863dee0a3d27 (diff) | |
| parent | 0f9d717a7463d833cd460610c97b5854ff18096a (diff) | |
Merge "Fix the behavior of vulkan::driver::Debuggable() function"
Diffstat (limited to 'vulkan/libvulkan/driver.cpp')
| -rw-r--r-- | vulkan/libvulkan/driver.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vulkan/libvulkan/driver.cpp b/vulkan/libvulkan/driver.cpp index d92f35ac23..0fb3a29ac8 100644 --- a/vulkan/libvulkan/driver.cpp +++ b/vulkan/libvulkan/driver.cpp @@ -754,7 +754,7 @@ void FreeDeviceData(DeviceData* data, const VkAllocationCallbacks& allocator) { } // anonymous namespace bool Debuggable() { - return (prctl(PR_GET_DUMPABLE, 0, 0, 0, 0) >= 0); + return prctl(PR_GET_DUMPABLE, 0, 0, 0, 0) > 0; } bool OpenHAL() { |