mesa: remove call to Driver.Scissor() in _mesa_WindowRectanglesEXT()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Fri, 2 Jun 2017 12:31:47 +0000 (14:31 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 6 Jun 2017 09:47:24 +0000 (11:47 +0200)
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 <samuel.pitoiset@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/scissor.c

index 631ea4d32055accc70d40fb8b30fa48c9e9893bc..fe2e4dbff657bdc95a052956e1f3cc4bf690ac82 100644 (file)
@@ -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);
 }