aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-06-02 14:31:49 +0200
committerSamuel Pitoiset <[email protected]>2017-06-06 11:47:31 +0200
commitb9f9bad4ebbf534a839ef539d75bfaabee6e0c42 (patch)
tree757d35e29d6c55c5b2b3081e83bc70bdafe1f9cf /src/mesa/main
parent035b0176e2c38ce4c35415de8f5cac7a4017d324 (diff)
mesa: make use of NewWindowRectangles driver flags
Now, st_update_window_rectangles() won't be called when the scissor is going to be updated. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/scissor.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/main/scissor.c b/src/mesa/main/scissor.c
index fe2e4dbff65..13934f9ca20 100644
--- a/src/mesa/main/scissor.c
+++ b/src/mesa/main/scissor.c
@@ -253,7 +253,9 @@ _mesa_WindowRectanglesEXT(GLenum mode, GLsizei count, const GLint *box)
box += 4;
}
- FLUSH_VERTICES(ctx, _NEW_SCISSOR);
+ FLUSH_VERTICES(ctx, 0);
+ ctx->NewDriverState |= ctx->DriverFlags.NewWindowRectangles;
+
memcpy(ctx->Scissor.WindowRects, newval,
sizeof(struct gl_scissor_rect) * count);
ctx->Scissor.NumWindowRects = count;