Add dummy reads to pipes for linux for some reason

This commit is contained in:
baldurk
2025-10-27 11:45:35 +00:00
parent 969c299448
commit 929548f478
+12
View File
@@ -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");