From: Samuel Pitoiset Date: Fri, 2 Jun 2017 12:31:47 +0000 (+0200) Subject: mesa: remove call to Driver.Scissor() in _mesa_WindowRectanglesEXT() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d19d8f5e6b583d2eac202c2fd8b7ac9e54c489d5;p=mesa.git mesa: remove call to Driver.Scissor() in _mesa_WindowRectanglesEXT() 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 --- 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); }