fix vector region style on osx (#2105)

This commit is contained in:
shun-iwasawa 2018-06-26 15:21:18 +09:00 committed by masafumi-inoue
parent 7a435f47d1
commit a86fd8f80a

View file

@ -172,6 +172,7 @@ void QtOfflineGL::createContext(TDimension rasterSize,
m_context->makeCurrent(m_surface.get());
QOpenGLFramebufferObjectFormat fbo_format;
fbo_format.setAttachment(QOpenGLFramebufferObject::CombinedDepthStencil);
m_fbo = std::make_shared<QOpenGLFramebufferObject>(rasterSize.lx,
rasterSize.ly, fbo_format);
m_fbo->bind();