diff options
Diffstat (limited to 'recipes-qt/qt5/qtbase-git/0018-QOpenGLPaintDevice-sub-area-support.patch')
-rw-r--r-- | recipes-qt/qt5/qtbase-git/0018-QOpenGLPaintDevice-sub-area-support.patch | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/recipes-qt/qt5/qtbase-git/0018-QOpenGLPaintDevice-sub-area-support.patch b/recipes-qt/qt5/qtbase-git/0018-QOpenGLPaintDevice-sub-area-support.patch index 9d581f82..e26d237f 100644 --- a/recipes-qt/qt5/qtbase-git/0018-QOpenGLPaintDevice-sub-area-support.patch +++ b/recipes-qt/qt5/qtbase-git/0018-QOpenGLPaintDevice-sub-area-support.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 2efd051d3093ee4e4091a8947f28d9bd528f2e9e Mon Sep 17 00:00:00 2001 | 1 | From b485950725b776bc1f0cf4edd5330d61732262cb Mon Sep 17 00:00:00 2001 |
2 | From: Jani Hautakangas <jani.hautakangas@ixonos.com> | 2 | From: Jani Hautakangas <jani.hautakangas@ixonos.com> |
3 | Date: Thu, 16 May 2013 09:52:07 +0300 | 3 | Date: Thu, 16 May 2013 09:52:07 +0300 |
4 | Subject: [PATCH] QOpenGLPaintDevice sub-area support | 4 | Subject: [PATCH 18/23] QOpenGLPaintDevice sub-area support |
5 | 5 | ||
6 | Allows creating QOpenGLPaintDevice targetting sub-area | 6 | Allows creating QOpenGLPaintDevice targetting sub-area |
7 | of binded framebuffer. | 7 | of binded framebuffer. |
@@ -9,12 +9,14 @@ of binded framebuffer. | |||
9 | Upstream-Status: Pending | 9 | Upstream-Status: Pending |
10 | 10 | ||
11 | Change-Id: Ida2f079aa1ac0b87d36b54129e226399dbcdda80 | 11 | Change-Id: Ida2f079aa1ac0b87d36b54129e226399dbcdda80 |
12 | |||
13 | Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> | ||
12 | --- | 14 | --- |
13 | src/gui/opengl/qopenglpaintdevice.cpp | 12 ++++++++++++ | 15 | src/gui/opengl/qopenglpaintdevice.cpp | 12 ++++++++++++ |
14 | src/gui/opengl/qopenglpaintdevice.h | 2 ++ | 16 | src/gui/opengl/qopenglpaintdevice.h | 2 ++ |
15 | src/gui/opengl/qopenglpaintengine.cpp | 10 +++++++--- | 17 | src/gui/opengl/qopenglpaintengine.cpp | 10 +++++++--- |
16 | src/gui/opengl/qopenglpaintengine_p.h | 1 + | 18 | src/gui/opengl/qopenglpaintengine_p.h | 1 + |
17 | src/gui/opengl/qopengltextureglyphcache.cpp | 2 +- | 19 | src/gui/opengl/qopengltextureglyphcache.cpp | 2 +- |
18 | 5 files changed, 23 insertions(+), 4 deletions(-) | 20 | 5 files changed, 23 insertions(+), 4 deletions(-) |
19 | 21 | ||
20 | diff --git a/src/gui/opengl/qopenglpaintdevice.cpp b/src/gui/opengl/qopenglpaintdevice.cpp | 22 | diff --git a/src/gui/opengl/qopenglpaintdevice.cpp b/src/gui/opengl/qopenglpaintdevice.cpp |
@@ -74,10 +76,10 @@ index c05571c..01eb1bc 100644 | |||
74 | void setSize(const QSize &size); | 76 | void setSize(const QSize &size); |
75 | void setDevicePixelRatio(qreal devicePixelRatio); | 77 | void setDevicePixelRatio(qreal devicePixelRatio); |
76 | diff --git a/src/gui/opengl/qopenglpaintengine.cpp b/src/gui/opengl/qopenglpaintengine.cpp | 78 | diff --git a/src/gui/opengl/qopenglpaintengine.cpp b/src/gui/opengl/qopenglpaintengine.cpp |
77 | index 0782e42..52afc60 100644 | 79 | index 78f5080..20db620 100644 |
78 | --- a/src/gui/opengl/qopenglpaintengine.cpp | 80 | --- a/src/gui/opengl/qopenglpaintengine.cpp |
79 | +++ b/src/gui/opengl/qopenglpaintengine.cpp | 81 | +++ b/src/gui/opengl/qopenglpaintengine.cpp |
80 | @@ -1978,7 +1978,10 @@ bool QOpenGL2PaintEngineEx::begin(QPaintDevice *pdev) | 82 | @@ -2004,7 +2004,10 @@ bool QOpenGL2PaintEngineEx::begin(QPaintDevice *pdev) |
81 | for (int i = 0; i < QT_GL_VERTEX_ARRAY_TRACKED_COUNT; ++i) | 83 | for (int i = 0; i < QT_GL_VERTEX_ARRAY_TRACKED_COUNT; ++i) |
82 | d->vertexAttributeArraysEnabledState[i] = false; | 84 | d->vertexAttributeArraysEnabledState[i] = false; |
83 | 85 | ||
@@ -88,7 +90,7 @@ index 0782e42..52afc60 100644 | |||
88 | d->width = sz.width(); | 90 | d->width = sz.width(); |
89 | d->height = sz.height(); | 91 | d->height = sz.height(); |
90 | d->mode = BrushDrawingMode; | 92 | d->mode = BrushDrawingMode; |
91 | @@ -2066,7 +2069,7 @@ void QOpenGL2PaintEngineEx::ensureActive() | 93 | @@ -2092,7 +2095,7 @@ void QOpenGL2PaintEngineEx::ensureActive() |
92 | d->device->ensureActiveTarget(); | 94 | d->device->ensureActiveTarget(); |
93 | 95 | ||
94 | d->transferMode(BrushDrawingMode); | 96 | d->transferMode(BrushDrawingMode); |
@@ -97,7 +99,7 @@ index 0782e42..52afc60 100644 | |||
97 | d->needsSync = false; | 99 | d->needsSync = false; |
98 | d->lastMaskTextureUsed = 0; | 100 | d->lastMaskTextureUsed = 0; |
99 | d->shaderManager->setDirty(); | 101 | d->shaderManager->setDirty(); |
100 | @@ -2109,6 +2112,7 @@ void QOpenGL2PaintEngineExPrivate::updateClipScissorTest() | 102 | @@ -2135,6 +2138,7 @@ void QOpenGL2PaintEngineExPrivate::updateClipScissorTest() |
101 | if (bounds == QRect(0, 0, width, height)) { | 103 | if (bounds == QRect(0, 0, width, height)) { |
102 | glDisable(GL_SCISSOR_TEST); | 104 | glDisable(GL_SCISSOR_TEST); |
103 | } else { | 105 | } else { |
@@ -105,7 +107,7 @@ index 0782e42..52afc60 100644 | |||
105 | glEnable(GL_SCISSOR_TEST); | 107 | glEnable(GL_SCISSOR_TEST); |
106 | setScissor(bounds); | 108 | setScissor(bounds); |
107 | } | 109 | } |
108 | @@ -2117,14 +2121,14 @@ void QOpenGL2PaintEngineExPrivate::updateClipScissorTest() | 110 | @@ -2143,14 +2147,14 @@ void QOpenGL2PaintEngineExPrivate::updateClipScissorTest() |
109 | 111 | ||
110 | void QOpenGL2PaintEngineExPrivate::setScissor(const QRect &rect) | 112 | void QOpenGL2PaintEngineExPrivate::setScissor(const QRect &rect) |
111 | { | 113 | { |
@@ -135,11 +137,11 @@ index d51f0e5..0d4b38d 100644 | |||
135 | QOpenGLContext *ctx; | 137 | QOpenGLContext *ctx; |
136 | EngineMode mode; | 138 | EngineMode mode; |
137 | diff --git a/src/gui/opengl/qopengltextureglyphcache.cpp b/src/gui/opengl/qopengltextureglyphcache.cpp | 139 | diff --git a/src/gui/opengl/qopengltextureglyphcache.cpp b/src/gui/opengl/qopengltextureglyphcache.cpp |
138 | index 83f4075..ec29900 100644 | 140 | index 7d49c03..d9eb3fe 100644 |
139 | --- a/src/gui/opengl/qopengltextureglyphcache.cpp | 141 | --- a/src/gui/opengl/qopengltextureglyphcache.cpp |
140 | +++ b/src/gui/opengl/qopengltextureglyphcache.cpp | 142 | +++ b/src/gui/opengl/qopengltextureglyphcache.cpp |
141 | @@ -268,7 +268,7 @@ void QOpenGLTextureGlyphCache::resizeTextureData(int width, int height) | 143 | @@ -271,7 +271,7 @@ void QOpenGLTextureGlyphCache::resizeTextureData(int width, int height) |
142 | funcs.glBindFramebuffer(GL_FRAMEBUFFER, ctx->d_func()->current_fbo); | 144 | funcs.glBindFramebuffer(GL_FRAMEBUFFER, (GLuint)oldFbo); |
143 | 145 | ||
144 | if (pex != 0) { | 146 | if (pex != 0) { |
145 | - glViewport(0, 0, pex->width, pex->height); | 147 | - glViewport(0, 0, pex->width, pex->height); |
@@ -148,5 +150,5 @@ index 83f4075..ec29900 100644 | |||
148 | } else { | 150 | } else { |
149 | m_blitProgram->disableAttributeArray(int(QT_VERTEX_COORDS_ATTR)); | 151 | m_blitProgram->disableAttributeArray(int(QT_VERTEX_COORDS_ATTR)); |
150 | -- | 152 | -- |
151 | 1.7.9.5 | 153 | 1.8.3.2 |
152 | 154 | ||