i965: Fix indentation of index buffer rebase code.
authorEric Anholt <eric@anholt.net>
Wed, 23 Jan 2013 23:22:57 +0000 (15:22 -0800)
committerEric Anholt <eric@anholt.net>
Mon, 11 Feb 2013 21:14:51 +0000 (13:14 -0800)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_draw_upload.c

index ed3b37864ad0a8ff9169414827a5ef5ba0d87a21..e7f45ada482015cc619c5b9256f306de11c0b1da 100644 (file)
@@ -808,17 +808,17 @@ static void brw_upload_indices(struct brw_context *brw)
        * rebase it into a temporary.
        */
        if ((ib_type_size - 1) & offset) {
-           GLubyte *map = ctx->Driver.MapBufferRange(ctx,
-                                                    offset,
-                                                    ib_size,
-                                                    GL_MAP_WRITE_BIT,
-                                                    bufferobj);
+          GLubyte *map = ctx->Driver.MapBufferRange(ctx,
+                                                    offset,
+                                                    ib_size,
+                                                    GL_MAP_WRITE_BIT,
+                                                    bufferobj);
 
-          intel_upload_data(&brw->intel, map, ib_size, ib_type_size,
-                            &bo, &offset);
-          brw->ib.start_vertex_offset = offset / ib_type_size;
+          intel_upload_data(&brw->intel, map, ib_size, ib_type_size,
+                            &bo, &offset);
+          brw->ib.start_vertex_offset = offset / ib_type_size;
 
-           ctx->Driver.UnmapBuffer(ctx, bufferobj);
+          ctx->Driver.UnmapBuffer(ctx, bufferobj);
        } else {
          /* Use CMD_3D_PRIM's start_vertex_offset to avoid re-uploading
           * the index buffer state when we're just moving the start index