Module: Mesa
Branch: master
Commit: d19d8f5e6b583d2eac202c2fd8b7ac9e54c489d5
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=d19d8f5e6b583d2eac202c2fd8b7ac9e54c489d5

Author: Samuel Pitoiset <[email protected]>
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 <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>

---

 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);
 }
 
 

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to