mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 15:48:36 +02:00
mesa: don't use memset in glDrawArrays
Reviewed-by: Mathias Fröhlich <mathias.froehlich@web.de> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3861>
This commit is contained in:
parent
ee549c6766
commit
a6d3158909
1 changed files with 1 additions and 1 deletions
|
|
@ -360,7 +360,6 @@ _mesa_draw_arrays(struct gl_context *ctx, GLenum mode, GLint start,
|
||||||
/* OpenGL 4.5 says that primitive restart is ignored with non-indexed
|
/* OpenGL 4.5 says that primitive restart is ignored with non-indexed
|
||||||
* draws.
|
* draws.
|
||||||
*/
|
*/
|
||||||
memset(&prim, 0, sizeof(prim));
|
|
||||||
prim.begin = 1;
|
prim.begin = 1;
|
||||||
prim.end = 1;
|
prim.end = 1;
|
||||||
prim.mode = mode;
|
prim.mode = mode;
|
||||||
|
|
@ -369,6 +368,7 @@ _mesa_draw_arrays(struct gl_context *ctx, GLenum mode, GLint start,
|
||||||
prim.draw_id = drawID;
|
prim.draw_id = drawID;
|
||||||
prim.start = start;
|
prim.start = start;
|
||||||
prim.count = count;
|
prim.count = count;
|
||||||
|
prim.basevertex = 0;
|
||||||
|
|
||||||
ctx->Driver.Draw(ctx, &prim, 1, NULL,
|
ctx->Driver.Draw(ctx, &prim, 1, NULL,
|
||||||
GL_TRUE, start, start + count - 1, NULL, 0, NULL);
|
GL_TRUE, start, start + count - 1, NULL, 0, NULL);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue