From 1ddb7aee6bed7f1ba0aa0180f5035ede38ec12a6 Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Fri, 5 Oct 2018 15:43:47 +0200 Subject: [PATCH] pixel offset fixed --- src/nodes/QskTextureRenderer.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/nodes/QskTextureRenderer.cpp b/src/nodes/QskTextureRenderer.cpp index 7b032183..74c38cdb 100644 --- a/src/nodes/QskTextureRenderer.cpp +++ b/src/nodes/QskTextureRenderer.cpp @@ -57,14 +57,9 @@ static uint qskCreateTextureOpenGL( QOpenGLFramebufferObject fbo( width, height, format2 ); - /* - Mirror vertically to be compliant with what QQuickTextureFactory expects. - for some reason we have to add 1 pixel to avoid that the mirrored - image gets cut off. - */ - + // Mirror vertically const QRect sourceRect( 0, 0, width, height ); - const QRect targetRect( 0, height + 1, width, -height ); + const QRect targetRect( 0, height, width, -height ); QOpenGLFramebufferObject::blitFramebuffer( &fbo, sourceRect, &multisampledFbo, targetRect );