summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJelle Raaijmakers <jelle@gmta.nl>2022-01-11 01:37:12 +0100
committerLinus Groh <mail@linusgroh.de>2022-01-11 23:47:42 +0100
commit17ec4333265d376e526c53c180492dfd67bab540 (patch)
tree8a26414797303197920c7f00820661fc36947d14 /.github
parent69eb3b08386b8cc15321466a67462e04edfb2de8 (diff)
downloadserenity-17ec4333265d376e526c53c180492dfd67bab540.zip
LibSoftGPU: Only render complete primitives
Previously, we were expecting triangles and quads to consist of complete sets of vertices. However, a more common behavior is to ignore all vertices that do not make up a full primitive. For example, OpenGL specifies for `GL_QUADS`: "The total number of vertices between Begin and End is 4n + k, where 0 ≤ k ≤ 3; if k is not zero, the final k vertices are ignored." This changes the behavior of `Device::draw_primitives()` to both return early if no full set of vertices was provided, and to ignore any additional vertices that are not part of a full set.
Diffstat (limited to '.github')
0 files changed, 0 insertions, 0 deletions