diff --git a/kernels/common/buffer.h b/kernels/common/buffer.h index c761bf7a98..340e962520 100644 --- a/kernels/common/buffer.h +++ b/kernels/common/buffer.h @@ -147,7 +147,7 @@ namespace embree public: /*! Buffer construction */ RawBufferView() - : ptr_ofs(nullptr), stride(0), num(0), format(RTC_FORMAT_UNDEFINED), modCounter(1), modified(true), userData(0) {} + : ptr_ofs(nullptr), dptr_ofs(nullptr), stride(0), num(0), format(RTC_FORMAT_UNDEFINED), modCounter(1), modified(true), userData(0) {} public: /*! sets the buffer view */ diff --git a/kernels/common/scene.cpp b/kernels/common/scene.cpp index d327113c89..4c987b1aed 100644 --- a/kernels/common/scene.cpp +++ b/kernels/common/scene.cpp @@ -49,6 +49,7 @@ namespace embree maxTimeSegments(0), geometries_device(nullptr), geometries_data_device(nullptr), + num_geometries_device(0), taskGroup(new TaskGroup()), progressInterface(this), progress_monitor_function(nullptr), progress_monitor_ptr(nullptr), progress_monitor_counter(0) { diff --git a/tutorials/debug_device_memory/debug_device_memory.cpp b/tutorials/debug_device_memory/debug_device_memory.cpp index c3e6a24f9a..307b5a053a 100644 --- a/tutorials/debug_device_memory/debug_device_memory.cpp +++ b/tutorials/debug_device_memory/debug_device_memory.cpp @@ -28,8 +28,12 @@ namespace embree } int main(int argc, char** argv) { - if (embree::TutorialBenchmark::benchmark(argc, argv)) { - return embree::TutorialBenchmark(embree::renderBenchFunc).main(argc, argv, "debug_device_memory"); + try { + if (embree::TutorialBenchmark::benchmark(argc, argv)) { + return embree::TutorialBenchmark(embree::renderBenchFunc).main(argc, argv, "debug_device_memory"); + } + return embree::Tutorial().main(argc,argv); + } catch (std::exception& e ) { + std::cerr << "Exception caught: " << e.what() << std::endl; } - return embree::Tutorial().main(argc,argv); }