diff --git a/src/Managers.cpp b/src/Managers.cpp index d92a877..e125217 100644 --- a/src/Managers.cpp +++ b/src/Managers.cpp @@ -209,6 +209,8 @@ RenderingManager::RenderInfo RenderingManager::get_render_info() { LOG(debug) << "Getting render info"; + RenderInfo render_info; + try { float* dev_samples; unsigned int sample_count = 0; @@ -217,7 +219,7 @@ RenderingManager::RenderInfo RenderingManager::get_render_info() { d_q.memcpy(&sample_count, dev_samples, 1 * sizeof(unsigned int)); - RenderInfo render_info; + render_info.samples = sample_count; } catch (std::exception const& e) {