mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-29 13:20:54 +00:00
Use deterministic filenames for shader compilation
This commit is contained in:
@@ -51,7 +51,10 @@ std::string GetEnvVar(const char *var)
|
||||
return "";
|
||||
}
|
||||
|
||||
void tmpnam_via_mkstemp(char (&buf)[MAX_PATH])
|
||||
std::string GetExecutableFilename()
|
||||
{
|
||||
snprintf(buf, MAX_PATH - 1, "/tmp/rdoc_tmp_%x", rand());
|
||||
char path[512] = {0};
|
||||
readlink("/proc/self/exe", path, 511);
|
||||
|
||||
return path;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user