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

Author: Samuel Pitoiset <samuel.pitoi...@gmail.com>
Date:   Wed Aug 23 16:43:33 2017 +0200

mesa: remove duplicate assignments in bind_xfb_buffers()

Useless to do that before checking errors. It's now similar to
the other bind_XXX_buffers() helpers.

Signed-off-by: Samuel Pitoiset <samuel.pitoi...@gmail.com>
Reviewed-by: Timothy Arceri <tarc...@itsqueeze.com>

---

 src/mesa/main/bufferobj.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/mesa/main/bufferobj.c b/src/mesa/main/bufferobj.c
index 099648f419..2da2128081 100644
--- a/src/mesa/main/bufferobj.c
+++ b/src/mesa/main/bufferobj.c
@@ -4055,9 +4055,6 @@ bind_xfb_buffers(struct gl_context *ctx,
       GLsizeiptr size = 0;
 
       if (range) {
-         offset = offsets[i];
-         size = sizes[i];
-
          if (!bind_buffers_check_offset_and_size(ctx, i, offsets, sizes))
             continue;
 

_______________________________________________
mesa-commit mailing list
mesa-commit@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to