Skip to content
Snippets Groups Projects
Commit c5042cc3 authored by Nicolas Pope's avatar Nicolas Pope
Browse files

Catch all render exceptions

parent 583b98bf
Branches
Tags
No related merge requests found
Pipeline #29113 failed
......@@ -460,7 +460,7 @@ bool OpenVRRender::retrieve(ftl::data::Frame &frame_out) {
renderer_->end();
renderer2_->end();
} catch (const ftl::exception &e) {
} catch (const std::exception &e) {
LOG(ERROR) << "Render exception: " << e.what();
renderer_->cancel();
renderer2_->cancel();
......
......@@ -207,7 +207,7 @@ bool ScreenRender::retrieve(ftl::data::Frame &frame_out) {
// This waits for GPU also
if (!data_only) renderer_->end();
} catch (const ftl::exception &e) {
} catch (const std::exception &e) {
LOG(ERROR) << "Render exception: " << e.what();
renderer_->cancel();
frame_out.message(ftl::data::Message::Error_RENDER, e.what());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment