summaryrefslogtreecommitdiffstats
path: root/src/opengl
diff options
context:
space:
mode:
authorTrond Kjernåsen <trond@trolltech.com>2010-04-07 14:21:57 (GMT)
committerTrond Kjernåsen <trond@trolltech.com>2010-04-07 14:21:57 (GMT)
commita6e182f7a91b2dd9371e7b16f2553430cbae4509 (patch)
treee9a1e27e07c98b405e1e5011739a54dd1bc6287b /src/opengl
parent4c23dd7e310c2af7dc7bf351eade0bd6d528561e (diff)
downloadQt-a6e182f7a91b2dd9371e7b16f2553430cbae4509.zip
Qt-a6e182f7a91b2dd9371e7b16f2553430cbae4509.tar.gz
Qt-a6e182f7a91b2dd9371e7b16f2553430cbae4509.tar.bz2
Fixed caching of QPainter patterns in the GL 2 engine.
The patterns all got the same cache key (e.g. 1), which caused the patterns to be uploaded as a texture every single time they were used. Reviewed-by: Kim
Diffstat (limited to 'src/opengl')
-rw-r--r--src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp b/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp
index 2b8e097..828849d 100644
--- a/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp
+++ b/src/opengl/gl2paintengineex/qpaintengineex_opengl2.cpp
@@ -184,7 +184,7 @@ void QGL2PaintEngineExPrivate::updateBrushTexture()
QImage texImage = qt_imageForBrush(style, false);
glActiveTexture(GL_TEXTURE0 + QT_BRUSH_TEXTURE_UNIT);
- ctx->d_func()->bindTexture(texImage, GL_TEXTURE_2D, GL_RGBA, true, QGLContext::InternalBindOption);
+ ctx->d_func()->bindTexture(texImage, GL_TEXTURE_2D, GL_RGBA, QGLContext::InternalBindOption);
updateTextureFilter(GL_TEXTURE_2D, GL_REPEAT, q->state()->renderHints & QPainter::SmoothPixmapTransform);
}
else if (style >= Qt::LinearGradientPattern && style <= Qt::ConicalGradientPattern) {