summaryrefslogtreecommitdiffstats
path: root/src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h
diff options
context:
space:
mode:
authorSamuel Rødal <sroedal@trolltech.com>2009-05-28 11:45:42 (GMT)
committerSamuel Rødal <sroedal@trolltech.com>2009-05-28 12:13:21 (GMT)
commit27d979b0ea39922e6e2ae3a3cc6a4d45c9c8f0e9 (patch)
treee7b34f1f6cb3d61fc276ce3043b00d39f27ed16f /src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h
parent6b75c19e42cd7ffd6d8c0716aa9b1251be28b3e7 (diff)
downloadQt-27d979b0ea39922e6e2ae3a3cc6a4d45c9c8f0e9.zip
Qt-27d979b0ea39922e6e2ae3a3cc6a4d45c9c8f0e9.tar.gz
Qt-27d979b0ea39922e6e2ae3a3cc6a4d45c9c8f0e9.tar.bz2
Fixed incorrect handling of composition modes in GL2 paint engine.
Even if the source pixels are opaque we have to enable blending for the non-trivial composition modes. Some of the composition modes are independent of source alpha and depend on destination alpha for example. Reviewed-by: Tom
Diffstat (limited to 'src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h')
-rw-r--r--src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h b/src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h
index ef62390..dececa3 100644
--- a/src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h
+++ b/src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h
@@ -159,7 +159,7 @@ public:
// fill, drawOutline, drawTexture & drawCachedGlyphs are the rendering entry points:
void fill(const QVectorPath &path);
void drawOutline(const QVectorPath& path);
- void drawTexture(const QGLRect& dest, const QGLRect& src, const QSize &textureSize);
+ void drawTexture(const QGLRect& dest, const QGLRect& src, const QSize &textureSize, bool opaque);
void drawCachedGlyphs(const QPointF &p, const QTextItemInt &ti);
void drawVertexArrays(QGL2PEXVertexArray& vertexArray, GLenum primitive);