From 3846aec83b42d9666cc2ae012eb4db380dfdf8fe Mon Sep 17 00:00:00 2001 From: Andrew Knight Date: Fri, 8 Aug 2014 13:26:53 +0300 Subject: winrt: Fix backing store blit The calculation forgot to take the mirrored texture upload into account. Change-Id: Ia69c9c4b9d852d9ac652e71aaa466c5387ff5bca Reviewed-by: Oliver Wolff --- src/plugins/platforms/winrt/qwinrtbackingstore.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/platforms/winrt/qwinrtbackingstore.cpp b/src/plugins/platforms/winrt/qwinrtbackingstore.cpp index 7475965d11..8513e872e2 100644 --- a/src/plugins/platforms/winrt/qwinrtbackingstore.cpp +++ b/src/plugins/platforms/winrt/qwinrtbackingstore.cpp @@ -128,12 +128,12 @@ void QWinRTBackingStore::flush(QWindow *window, const QRegion ®ion, const QPo glBindFramebuffer(GL_READ_FRAMEBUFFER, d->fbo->handle()); glBindFramebuffer(GL_DRAW_FRAMEBUFFER, 0); - const int y1 = bounds.height() + bounds.y(); - const int y2 = d->size.height() - y1; + const int y1 = bounds.y(); + const int y2 = y1 + bounds.height(); const int x1 = bounds.x(); const int x2 = x1 + bounds.width(); - glBlitFramebuffer(x1, y2, x2, y1, - x1, y1, x2, y2, + glBlitFramebuffer(x1, y1, x2, y2, + x1, d->size.height() - y1, x2, d->size.height() - y2, GL_COLOR_BUFFER_BIT, GL_NEAREST); d->context->swapBuffers(window); -- cgit v1.2.3