mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-26 06:50:37 +02:00
i965: Actually check every primitive for cut index support.
can_cut_index_handle_prims() was passed an array of _mesa_prim objects and a count, and ran a loop for that many iterations. However, it treated the array like a pointer, repeatedly checking the first element. This patch makes it actually check every primitive. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Paul Berry <stereotype441@gmail.com>
This commit is contained in:
parent
6b5c802c30
commit
9f7d5870a3
1 changed files with 2 additions and 2 deletions
|
|
@ -92,8 +92,8 @@ can_cut_index_handle_prims(struct gl_context *ctx,
|
|||
return false;
|
||||
}
|
||||
|
||||
for ( ; nr_prims > 0; nr_prims--) {
|
||||
switch(prim->mode) {
|
||||
for (int i = 0; i < nr_prims; i++) {
|
||||
switch (prim[i].mode) {
|
||||
case GL_POINTS:
|
||||
case GL_LINES:
|
||||
case GL_LINE_STRIP:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue