diff options
author | Marek Olšák <[email protected]> | 2020-02-12 15:32:50 -0500 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2020-02-18 16:46:55 -0500 |
commit | a6d31589097ef3fb99477809da7f6d571b85629e (patch) | |
tree | 24655b145c9da1c4238e5f682673cd254ac1d235 /src | |
parent | ee549c67668289e262243b6549a5faf230aa0fd6 (diff) |
mesa: don't use memset in glDrawArrays
Reviewed-by: Mathias Fröhlich <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3861>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/main/draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/draw.c b/src/mesa/main/draw.c index 9f314dadebe..2062f99dc0e 100644 --- a/src/mesa/main/draw.c +++ b/src/mesa/main/draw.c @@ -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); |