mirror of
https://github.com/brl/mutter.git
synced 2025-01-23 09:59:03 +00:00
Neil Roberts
a25aad954e
cogl-path: Don't bother filling the path if less than 3 nodes
Previously there was a check to avoid filling the path if there are zero nodes. However the tesselator also won't generate any triangles if there are less than 3 nodes so we might as well bail out in that case too. If we don't emit any triangles then we would end up trying to create an empty VBO. Although I don't think this should necessarily be a problem, this seems to cause Mesa to segfault in version 7.8.1 when calling glBufferSubData (although not in master). test-cogl-primitives tries to fill a path with only two points so it's convenient to be able to avoid the crash in this case.
Description
Languages
C
98.9%
Meson
0.7%
Python
0.3%