aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmldirparser.cpp
diff options
context:
space:
mode:
authorJocelyn Turcotte <jocelyn.turcotte@digia.com>2015-01-05 18:14:56 +0100
committerJocelyn Turcotte <jocelyn.turcotte@digia.com>2015-01-06 18:26:21 +0100
commita83246146854166a54ee1f9bd4f8911d6bd49602 (patch)
tree0be3a5b584ad622cb40fb04a6c4983b22128b5b7 /src/qml/qml/qqmldirparser.cpp
parenta371bac3fba73f92aaa63a68d8ab1ae81a1d1031 (diff)
Fix the vertex ordering of merged triangle strips
Culling and gl_FrontFacing depend on the vertex order matching the value set through glFrontFace. To match the default counter-clockwise order we need to preserve the parity of triangles relatively to the start of the indices argument of glDrawElements, but we break this parity because of the degenerate triangles between merged strips. Fix the issue by skipping the first degenerate triangle, the parity of following strips will be preserved since they are then separated by two triangles. This fixes a regression of tests/manual/scenegraph_lancelot/data/shaders/culling/culling_1.qml triggered by 38cab579a0c5398b7621221fd8609bc43cf1f3c5. Change-Id: Iefa7eaab68112d31be9d8646bd288eb000528cd5 Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
Diffstat (limited to 'src/qml/qml/qqmldirparser.cpp')
0 files changed, 0 insertions, 0 deletions