summaryrefslogtreecommitdiffstats
path: root/src/opengl/qpixmapdata_gl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/opengl/qpixmapdata_gl.cpp')
-rw-r--r--src/opengl/qpixmapdata_gl.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/opengl/qpixmapdata_gl.cpp b/src/opengl/qpixmapdata_gl.cpp
index fa1b815..0bc46e1 100644
--- a/src/opengl/qpixmapdata_gl.cpp
+++ b/src/opengl/qpixmapdata_gl.cpp
@@ -157,12 +157,8 @@ void QGLPixmapGLPaintDevice::beginPaint()
// uploaded from an image or rendered into before), we need to
// copy it from the texture to the render FBO.
- // Pass false to tell bind to _not_ copy the FBO into the texture!
- GLuint texId = data->bind(false);
-
- QGL2PaintEngineEx* pe = static_cast<QGL2PaintEngineEx*>(data->paintEngine());
- QRect rect(0, 0, data->width(), data->height());
- pe->drawTexture(QRectF(rect), texId, rect.size(), QRectF(rect));
+ // Pass false to bind so it doesn't copy the FBO into the texture!
+ context()->drawTexture(QPointF(0.0, 0.0), data->bind(false));
}
}