Commit 467b7178 authored by Carson Brownlee's avatar Carson Brownlee Committed by Carson Brownlee
Browse files

removing error function capture

parent d848400a
......@@ -70,7 +70,6 @@ namespace RTW
public:
RTWError Init() override
{
const bool throwError = true;
static bool once = false;
RTWError ret = RTW_NO_ERROR;
if (!once) {
......@@ -80,8 +79,6 @@ namespace RTW
std::runtime_error("OSPRay device could not be fetched!");
ospDeviceSetErrorFunc(device, [](OSPError, const char *errorDetails) {
std::cerr << "OSPRay ERROR: " << errorDetails << std::endl;
if (throwError)
throw std::runtime_error("ospray error");
});
once = true;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment