From b650cb7faca7f2cfaa5b5a7e74601c56e73b876c Mon Sep 17 00:00:00 2001 From: kallaballa Date: Wed, 14 Jun 2023 20:00:59 +0200 Subject: [PATCH] new nanogui::Screen constructor --- modules/v4d/src/detail/nanoguicontext.cpp | 2 +- modules/v4d/src/detail/nanovgcontext.cpp | 2 +- modules/v4d/third/nanogui | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/v4d/src/detail/nanoguicontext.cpp b/modules/v4d/src/detail/nanoguicontext.cpp index 64e3a7431..3454edaf4 100644 --- a/modules/v4d/src/detail/nanoguicontext.cpp +++ b/modules/v4d/src/detail/nanoguicontext.cpp @@ -26,7 +26,7 @@ NanoguiContext::NanoguiContext(FrameBufferContext& fbContext) : #else FrameBufferContext::GLScope glScope(fbCtx(), GL_FRAMEBUFFER); #endif - screen_ = new nanogui::Screen(); + screen_ = new nanogui::Screen(true, true, false); screen_->initialize(fbCtx().getGLFWWindow(), false); Size winSize = fbContext.getV4D().getWindowSize(); #ifndef __EMSCRIPTEN__ diff --git a/modules/v4d/src/detail/nanovgcontext.cpp b/modules/v4d/src/detail/nanovgcontext.cpp index 096b1cd7e..4f82ff49e 100644 --- a/modules/v4d/src/detail/nanovgcontext.cpp +++ b/modules/v4d/src/detail/nanovgcontext.cpp @@ -23,7 +23,7 @@ NanoVGContext::NanoVGContext(FrameBufferContext& fbContext) : } { FrameBufferContext::GLScope glScope(fbCtx(), GL_FRAMEBUFFER); - screen_ = new nanogui::Screen(); + screen_ = new nanogui::Screen(true, true, false); screen_->initialize(fbCtx().getGLFWWindow(), false); context_ = screen_->nvg_context(); form_ = new cv::v4d::FormHelper(screen_); diff --git a/modules/v4d/third/nanogui b/modules/v4d/third/nanogui index 81f1336e0..35c9689ec 160000 --- a/modules/v4d/third/nanogui +++ b/modules/v4d/third/nanogui @@ -1 +1 @@ -Subproject commit 81f1336e050d6319e1788e6b1bb86e7d3f28975a +Subproject commit 35c9689ec5b6c32d6b890cc6e21aba0daae98b69