mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 10:00:40 +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:
@@ -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