mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01: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
|
||||
* draws.
|
||||
*/
|
||||
memset(&prim, 0, sizeof(prim));
|
||||
prim.begin = 1;
|
||||
prim.end = 1;
|
||||
prim.mode = mode;
|
||||
|
|
@ -369,6 +368,7 @@ _mesa_draw_arrays(struct gl_context *ctx, GLenum mode, GLint start,
|
|||
prim.draw_id = drawID;
|
||||
prim.start = start;
|
||||
prim.count = count;
|
||||
prim.basevertex = 0;
|
||||
|
||||
ctx->Driver.Draw(ctx, &prim, 1, NULL,
|
||||
GL_TRUE, start, start + count - 1, NULL, 0, NULL);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue