From d19d8f5e6b583d2eac202c2fd8b7ac9e54c489d5 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Fri, 2 Jun 2017 14:31:47 +0200 Subject: [PATCH] mesa: remove call to Driver.Scissor() in _mesa_WindowRectanglesEXT() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This is actually useless because this driver call is only used by the classic DRI drivers which don't support that extension and probably won't never support it. Signed-off-by: Samuel Pitoiset Reviewed-by: Marek Olšák --- src/mesa/main/scissor.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/mesa/main/scissor.c b/src/mesa/main/scissor.c index 631ea4d3205..fe2e4dbff65 100644 --- a/src/mesa/main/scissor.c +++ b/src/mesa/main/scissor.c @@ -258,9 +258,6 @@ _mesa_WindowRectanglesEXT(GLenum mode, GLsizei count, const GLint *box) sizeof(struct gl_scissor_rect) * count); ctx->Scissor.NumWindowRects = count; ctx->Scissor.WindowRectMode = mode; - - if (ctx->Driver.Scissor) - ctx->Driver.Scissor(ctx); } -- 2.30.2