diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2009-05-28 11:45:42 (GMT) |
---|---|---|
committer | Samuel Rødal <sroedal@trolltech.com> | 2009-05-28 12:13:21 (GMT) |
commit | 27d979b0ea39922e6e2ae3a3cc6a4d45c9c8f0e9 (patch) | |
tree | e7b34f1f6cb3d61fc276ce3043b00d39f27ed16f /src/opengl/gl2paintengineex/qpaintengineex_opengl2_p.h | |
parent | 6b75c19e42cd7ffd6d8c0716aa9b1251be28b3e7 (diff) | |
download | Qt-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.h | 2 |
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); |