diff options
author | Marek Olšák <[email protected]> | 2020-03-22 16:40:32 -0400 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2020-04-06 10:29:16 -0400 |
commit | e6bc1702f484be1ecb592295c4877281075798be (patch) | |
tree | 9f6482f91c3b22a30eb9d70ce573bd30d24f7df2 /src/mesa/main/varray.c | |
parent | 10beee8a7757e956ab0e02ec8402ec1273d8edce (diff) |
mesa: precompute _mesa_primitive_restart_index during state changes
Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4466>
Diffstat (limited to 'src/mesa/main/varray.c')
-rw-r--r-- | src/mesa/main/varray.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/main/varray.c b/src/mesa/main/varray.c index 2190687e108..140c84de2b1 100644 --- a/src/mesa/main/varray.c +++ b/src/mesa/main/varray.c @@ -2747,6 +2747,7 @@ static void primitive_restart_index(struct gl_context *ctx, GLuint index) { ctx->Array.RestartIndex = index; + _mesa_update_derived_primitive_restart_state(ctx); } |