diff options
author | Laszlo Agocs <laszlo.agocs@theqtcompany.com> | 2014-12-16 13:19:39 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@digia.com> | 2014-12-18 10:15:26 +0100 |
commit | 5a7b256a62ebc520d0bd13ff5dd1c5fae4138bf7 (patch) | |
tree | ecfefd2fe3a7b959510320f21a86d315bb041c39 /examples | |
parent | 6a69ccc297e4de9726fa1a08555b49abef3f12a9 (diff) | |
download | qtdeclarative-5a7b256a62ebc520d0bd13ff5dd1c5fae4138bf7.tar.gz qtdeclarative-5a7b256a62ebc520d0bd13ff5dd1c5fae4138bf7.tar.bz2 qtdeclarative-5a7b256a62ebc520d0bd13ff5dd1c5fae4138bf7.zip |
rendercontrol example: calculate fbo size correctly
Change-Id: Ida1e7cb9426d31ed6406dd6db86f5834f0f1a6ac
Reviewed-by: Jørgen Lind <jorgen.lind@theqtcompany.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/quick/rendercontrol/window_singlethreaded.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/quick/rendercontrol/window_singlethreaded.cpp b/examples/quick/rendercontrol/window_singlethreaded.cpp index c72d11ade..454b06f42 100644 --- a/examples/quick/rendercontrol/window_singlethreaded.cpp +++ b/examples/quick/rendercontrol/window_singlethreaded.cpp @@ -139,7 +139,7 @@ void WindowSingleThreaded::createFbo() { // The scene graph has been initialized. It is now time to create an FBO and associate // it with the QQuickWindow. - m_fbo = new QOpenGLFramebufferObject(size(), QOpenGLFramebufferObject::CombinedDepthStencil); + m_fbo = new QOpenGLFramebufferObject(size() * devicePixelRatio(), QOpenGLFramebufferObject::CombinedDepthStencil); m_quickWindow->setRenderTarget(m_fbo); } |