From 793ea24f9d511b7693f2a8940c072bb6f7f5cb9a Mon Sep 17 00:00:00 2001 From: baldurk Date: Mon, 25 Feb 2019 21:04:09 +0000 Subject: [PATCH] Clear dlerror for code that's aggressive with error checks. Close #1279 --- renderdoc/os/posix/linux/linux_hook.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/renderdoc/os/posix/linux/linux_hook.cpp b/renderdoc/os/posix/linux/linux_hook.cpp index 7e964d1cc..c89d8bc1d 100644 --- a/renderdoc/os/posix/linux/linux_hook.cpp +++ b/renderdoc/os/posix/linux/linux_hook.cpp @@ -129,6 +129,9 @@ static void CheckLoadedLibraries() } } + // clear any dl errors in case twitchy applications get set off by false positive errors. + dlerror(); + // decrement the flag counter Atomic::Dec32(&tlsbusyflag); }