You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
embree: Update to 4.3.1
This commit is contained in:
committed by
Jakub Marcowski
parent
d2f9245ddc
commit
c43eab55a4
19
thirdparty/embree/kernels/common/state.cpp
vendored
19
thirdparty/embree/kernels/common/state.cpp
vendored
@@ -192,10 +192,17 @@ namespace embree
|
||||
const char* symbols[3] = { "=", ",", "|" };
|
||||
|
||||
bool State::parseFile(const FileName& fileName)
|
||||
{
|
||||
FILE* f = fopen(fileName.c_str(),"r");
|
||||
if (!f) return false;
|
||||
Ref<Stream<int> > file = new FileStream(f,fileName);
|
||||
{
|
||||
Ref<Stream<int> > file;
|
||||
// -- GODOT start --
|
||||
// try {
|
||||
file = new FileStream(fileName);
|
||||
// }
|
||||
// catch (std::runtime_error& e) {
|
||||
// (void) e;
|
||||
// return false;
|
||||
// }
|
||||
// -- GODOT end --
|
||||
|
||||
std::vector<std::string> syms;
|
||||
for (size_t i=0; i<sizeof(symbols)/sizeof(void*); i++)
|
||||
@@ -393,7 +400,7 @@ namespace embree
|
||||
grid_accel = cin->get().Identifier();
|
||||
else if (tok == Token::Id("grid_accel_mb") && cin->trySymbol("="))
|
||||
grid_accel_mb = cin->get().Identifier();
|
||||
|
||||
|
||||
else if (tok == Token::Id("verbose") && cin->trySymbol("="))
|
||||
verbose = cin->get().Int();
|
||||
else if (tok == Token::Id("benchmark") && cin->trySymbol("="))
|
||||
@@ -419,7 +426,7 @@ namespace embree
|
||||
} while (cin->trySymbol("|"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
else if (tok == Token::Id("max_spatial_split_replications") && cin->trySymbol("="))
|
||||
max_spatial_split_replications = cin->get().Float();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user