mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-10-25 00:03:42 +00:00
Avoid calling XOpenDisplay multiple times, fixes crashes on Intel Mesa
* See https://bugs.freedesktop.org/show_bug.cgi?id=99831 https://bugs.freedesktop.org/show_bug.cgi?id=54971 * It's not clear if it's invalid to call XOpenDisplay more than once but at the very least it's only really used as convenience to avoid plumbing the display handle through.
This commit is contained in:
1 parent
34112696e6
commit
3ab7510c7f
15 files changed
+150
-83
No files matched your search
@@ -24,7 +24,6 @@
|
||||
|
||||
#include "renderdoccmd.h"
|
||||
#include <locale.h>
|
||||
#include <replay/renderdoc_replay.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <string>
|
||||
@@ -116,7 +115,7 @@ void handle_cmd(android_app *app, int32_t cmd)
|
||||
vector<string> args = getRenderdoccmdArgs();
|
||||
if(!args.size())
|
||||
break; // Nothing for APK to do.
|
||||
renderdoccmd(args);
|
||||
renderdoccmd(GlobalEnvironment(), args);
|
||||
break;
|
||||
}
|
||||
case APP_CMD_TERM_WINDOW: break;
|
||||
|
||||
Reference in new issue
Block a user