forked from organicmaps/organicmaps
[drape] request depth buffer for drawable surface
This commit is contained in:
parent
7d8484441a
commit
09da505da8
1 changed files with 4 additions and 0 deletions
|
@ -9,7 +9,11 @@ MainWindow::MainWindow(QWidget *parent)
|
|||
, m_surface(NULL)
|
||||
{
|
||||
resize(1200, 800);
|
||||
|
||||
DrapeSurface * surface = new DrapeSurface();
|
||||
QSurfaceFormat format = surface->requestedFormat();
|
||||
format.setDepthBufferSize(16);
|
||||
surface->setFormat(format);
|
||||
m_surface = QWidget::createWindowContainer(surface, this);
|
||||
setCentralWidget(m_surface);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue