aboutsummaryrefslogtreecommitdiff
path: root/src/external
diff options
context:
space:
mode:
authorRay <raysan5@gmail.com>2019-03-28 18:05:32 +0100
committerRay <raysan5@gmail.com>2019-03-28 18:05:32 +0100
commit186d34827af93ec760c81a2abea09991c01556b3 (patch)
tree4352e3cb90165a58af293dce91988bde57eefa87 /src/external
parent165ced94286073a708d69119e8e8fde381710da2 (diff)
downloadraylib-186d34827af93ec760c81a2abea09991c01556b3.tar.gz
raylib-186d34827af93ec760c81a2abea09991c01556b3.zip
Align LINES and TRIANGLES drawing
When drawing LINES or TRIANGLES, vertex are accumulated in same buffer as QUADS and new draw calls are registered but QUADS drawing uses an index buffer for optimization, so, when adding LINES/TRIANGLES vertices we need to make sure next draw calls for QUADS keep aligned with indices buffer. To get that we just add some alignment vertex at the end of the LINES/TRIANGLES draw calls, to make them multiple of 4 vertex.
Diffstat (limited to 'src/external')
0 files changed, 0 insertions, 0 deletions