new nanogui::Screen constructor

pull/3471/head
kallaballa 2 years ago
parent eac58782c4
commit b650cb7fac
  1. 2
      modules/v4d/src/detail/nanoguicontext.cpp
  2. 2
      modules/v4d/src/detail/nanovgcontext.cpp
  3. 2
      modules/v4d/third/nanogui

@ -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__

@ -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_);

@ -1 +1 @@
Subproject commit 81f1336e050d6319e1788e6b1bb86e7d3f28975a
Subproject commit 35c9689ec5b6c32d6b890cc6e21aba0daae98b69
Loading…
Cancel
Save