diff options
author | Tom Cooksey <thomas.cooksey@nokia.com> | 2010-04-28 12:18:25 (GMT) |
---|---|---|
committer | Tom Cooksey <thomas.cooksey@nokia.com> | 2010-04-28 12:27:34 (GMT) |
commit | f2d647aa0a203e3598b37abcd69c65aec0d3ef21 (patch) | |
tree | c437b92d18d5e0f0bf7f43667382c445e0810864 /demos/spreadsheet/spreadsheetitem.cpp | |
parent | 8bde410a6d0b1510d182a365d769db182b1c07dd (diff) | |
download | Qt-f2d647aa0a203e3598b37abcd69c65aec0d3ef21.zip Qt-f2d647aa0a203e3598b37abcd69c65aec0d3ef21.tar.gz Qt-f2d647aa0a203e3598b37abcd69c65aec0d3ef21.tar.bz2 |
Fix crash in styles example when running with opengl graphicssystem
When drawing text using glyphs, the shader manager will select the
"MaskFragmentShader" which requires a varying called "textureCoords"
which is used to sample the glyph from the glyph texture. That's
fine, except when you try to use one of the pattern brushes or a
texture brush, because the src pixel fragment shader snippets for
those brushes also sample from a texture (the brush texture) and name
the verying they use "textureCoords" too. This led to textureCoords
being defined twice, which in turn caused a shader compile error
which then casued the seg-fault. This patch simply renames the
varying used to pass the coordinates for the brush texture so it
doesn't conflict.
Reviewed-By: Kim
Task-Number: QTBUG-9522
Diffstat (limited to 'demos/spreadsheet/spreadsheetitem.cpp')
0 files changed, 0 insertions, 0 deletions