diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/quick/rendercontrol/window.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/quick/rendercontrol/window.cpp b/examples/quick/rendercontrol/window.cpp index 4813936538..f34401bf40 100644 --- a/examples/quick/rendercontrol/window.cpp +++ b/examples/quick/rendercontrol/window.cpp @@ -139,7 +139,7 @@ void Window::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); } |