diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2009-03-27 16:53:22 +0100 |
---|---|---|
committer | Samuel Rødal <sroedal@trolltech.com> | 2009-03-27 17:03:01 +0100 |
commit | 136f9766f6629a3e82609cf51346e4811bcc47ae (patch) | |
tree | e6442b7a7dc25f67cdf4401e8071b6096b6cae45 /src/opengl | |
parent | c9db617cc2962ffbf76e6e6eb60a0c8a14843e52 (diff) |
Crash in OpenGL paint engine when brush style is Qt::NoBrush.
Check for Qt::NoBrush and return early in the composite() function.
Task-number: 249628
Reviewed-by: Trond
Diffstat (limited to 'src/opengl')
-rw-r--r-- | src/opengl/qpaintengine_opengl.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/opengl/qpaintengine_opengl.cpp b/src/opengl/qpaintengine_opengl.cpp index f332a50a73..976a0218a1 100644 --- a/src/opengl/qpaintengine_opengl.cpp +++ b/src/opengl/qpaintengine_opengl.cpp @@ -5328,6 +5328,9 @@ void QOpenGLPaintEnginePrivate::composite(GLuint primitive, const q_vertexType * Q_Q(QOpenGLPaintEngine); QGL_FUNC_CONTEXT; + if (current_style == Qt::NoBrush) + return; + DEBUG_ONCE qDebug() << "QOpenGLPaintEnginePrivate: Using compositing program: fragment_brush =" << fragment_brush << ", fragment_composition_mode =" << fragment_composition_mode; |