Warn if the OpenGL context lacks depth/stencil when requested.
authorGunnar Sletta <gunnar.sletta@digia.com>
Tue, 5 Feb 2013 12:45:24 +0000 (13:45 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 5 Feb 2013 15:36:45 +0000 (16:36 +0100)
commit8f774ffb954c219d503e99c94b62e754a7e6e435
treebb2e5dd47cdc33cfbca1604ff45fe6d3cf03914d
parentf626f32c91781ee3fe3aaa7209114efb9d6e3e7c
Warn if the OpenGL context lacks depth/stencil when requested.

I thought this was a serious bug in the renderer, but it turned out to
be qmlscene just overriding the surface format without requesting the
needed depth and stencil buffers. An easy mistake to make, hence
introduce the warning.

Task-number: QTBUG-29037
Change-Id: I59d09d1b2a139e3add851777ff2eeb6c4efb47ec
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
src/quick/scenegraph/qsgcontext.cpp