mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-23 14:15:42 +00:00
Add dummy reads to pipes for linux for some reason
This commit is contained in:
@@ -297,6 +297,12 @@ bool SpvCompilationSupported()
|
||||
if(!pipe)
|
||||
continue;
|
||||
|
||||
char dummy[512];
|
||||
while(!feof(pipe))
|
||||
{
|
||||
fread(dummy, 1, 512, pipe);
|
||||
}
|
||||
|
||||
int code = pclose(pipe);
|
||||
|
||||
if(WEXITSTATUS(code) == 0)
|
||||
@@ -516,6 +522,12 @@ std::vector<uint32_t> CompileShaderToSpv(const std::string &source_text, SPIRVTa
|
||||
return ret;
|
||||
}
|
||||
|
||||
char dummy[512];
|
||||
while(!feof(pipe))
|
||||
{
|
||||
fread(dummy, 1, 512, pipe);
|
||||
}
|
||||
|
||||
pclose(pipe);
|
||||
|
||||
f = fopen(outfile.c_str(), "rb");
|
||||
|
||||
Reference in New Issue
Block a user