diff --git a/src/plugins/platforms/eglfs/qeglfsbackingstore.cpp b/src/plugins/platforms/eglfs/qeglfsbackingstore.cpp index 2caf1064cf..8ad0aab522 100644 --- a/src/plugins/platforms/eglfs/qeglfsbackingstore.cpp +++ b/src/plugins/platforms/eglfs/qeglfsbackingstore.cpp @@ -124,8 +124,8 @@ void QEglFSBackingStore::flush(QWindow *window, const QRegion ®ion, const QPo GLfloat x1 = (r.left() / sr.width()) * 2 - 1; GLfloat x2 = (r.right() / sr.width()) * 2 - 1; - GLfloat y1 = (r.top() / sr.height()) * 2 - 1; - GLfloat y2 = (r.bottom() / sr.height()) * 2 - 1; + GLfloat y1 = -1 * ((r.top() / sr.height()) * 2 - 1); + GLfloat y2 = -1 * ((r.bottom() / sr.height()) * 2 - 1); const GLfloat vertexCoordinates[] = { x1, y1,