summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Knight <andrew.knight@digia.com>2014-08-08 13:26:53 +0300
committerAndrew Knight <andrew.knight@digia.com>2014-08-11 23:29:18 +0200
commit3846aec83b42d9666cc2ae012eb4db380dfdf8fe (patch)
treeedeb0bfe88573c08eb80fc9f635b205d3469f835
parent00f3f5c0a65e053c4075b92487fc77cfc33f2d5d (diff)
winrt: Fix backing store blit
The calculation forgot to take the mirrored texture upload into account. Change-Id: Ia69c9c4b9d852d9ac652e71aaa466c5387ff5bca Reviewed-by: Oliver Wolff <oliver.wolff@digia.com>
-rw-r--r--src/plugins/platforms/winrt/qwinrtbackingstore.cpp8
1 files 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 &region, 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);