mesa: remove duplicate assignments in bind_xfb_buffers()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 23 Aug 2017 14:43:33 +0000 (16:43 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 24 Aug 2017 09:01:50 +0000 (11:01 +0200)
Useless to do that before checking errors. It's now similar to
the other bind_XXX_buffers() helpers.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mesa/main/bufferobj.c

index 099648f4198f347685955b252af62e12e3d82ef4..2da21280819aa83cc9038a249da28d47f2588ae1 100644 (file)
@@ -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;