Mesa (master): mesa: remove call to Driver.Scissor() in _mesa_WindowRectanglesEXT()
Samuel Pitoiset
hakzsam at kemper.freedesktop.org
Tue Jun 6 09:53:23 UTC 2017
Module: Mesa
Branch: master
Commit: d19d8f5e6b583d2eac202c2fd8b7ac9e54c489d5
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d19d8f5e6b583d2eac202c2fd8b7ac9e54c489d5
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date: Fri Jun 2 14:31:47 2017 +0200
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 <samuel.pitoiset at gmail.com>
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
---
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 631ea4d320..fe2e4dbff6 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);
}
More information about the mesa-commit
mailing list