mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
Fix calling fallback_drawarrays() with the wrong arguments
This commit is contained in:
parent
8cff2ede6e
commit
725a56f157
1 changed files with 2 additions and 2 deletions
|
|
@ -150,7 +150,7 @@ _tnl_DrawArrays(GLenum mode, GLint start, GLsizei count)
|
|||
/* Small primitives: attempt to share a vb (at the expense of
|
||||
* using the immediate interface).
|
||||
*/
|
||||
fallback_drawarrays( ctx, mode, start, start + count );
|
||||
fallback_drawarrays( ctx, mode, start, count );
|
||||
}
|
||||
else if (start >= (GLint) ctx->Array.LockFirst &&
|
||||
start + count <= (GLint)(ctx->Array.LockFirst + ctx->Array.LockCount)) {
|
||||
|
|
@ -233,7 +233,7 @@ _tnl_DrawArrays(GLenum mode, GLint start, GLsizei count)
|
|||
skip = 0;
|
||||
}
|
||||
else {
|
||||
fallback_drawarrays( ctx, mode, start, start + count );
|
||||
fallback_drawarrays( ctx, mode, start, count );
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue