rendercontrol example: calculate fbo size correctly
Change-Id: Ida1e7cb9426d31ed6406dd6db86f5834f0f1a6ac Reviewed-by: Jørgen Lind <jorgen.lind@theqtcompany.com>
This commit is contained in:
parent
6a69ccc297
commit
5a7b256a62
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue