Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0f9d717a authored by Yiwei Zhang's avatar Yiwei Zhang
Browse files

Fix the behavior of vulkan::driver::Debuggable() function

Bug: 144169750
Test: Vulkan app on user build is unable to load implicit layers by default
Change-Id: Ief47c6daaa7d5722920e0fd75183d35ae2362adb
parent b74b3767
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -756,7 +756,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() {