mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 15:07:45 +00:00
Ports: C-ray rendering engine
This commit is contained in:
parent
fe1df9e9fb
commit
2a21675b01
7 changed files with 176 additions and 0 deletions
23
Ports/c-ray/patches/disable-checkbuf.patch
Normal file
23
Ports/c-ray/patches/disable-checkbuf.patch
Normal file
|
@ -0,0 +1,23 @@
|
|||
diff --git a/src/utils/filehandler.c b/src/utils/filehandler.c
|
||||
index 99638f3..feded8f 100644
|
||||
--- a/src/utils/filehandler.c
|
||||
+++ b/src/utils/filehandler.c
|
||||
@@ -162,7 +162,7 @@ char *loadFile(char *inputFileName, size_t *bytes) {
|
||||
//Wait for 2 secs and abort if nothing is coming in from stdin
|
||||
void checkBuf() {
|
||||
#ifndef WINDOWS
|
||||
- fd_set set;
|
||||
+ /*fd_set set;
|
||||
struct timeval timeout;
|
||||
int rv;
|
||||
FD_ZERO(&set);
|
||||
@@ -176,7 +176,8 @@ void checkBuf() {
|
||||
logr(error, "No input found after %i seconds. Hint: Try `./bin/c-ray input/scene.json`.\n", timeout.tv_sec);
|
||||
} else {
|
||||
return;
|
||||
- }
|
||||
+ }*/
|
||||
+ return;
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue