Mesa (master): mesa: fix indentation in _mesa_create_nameless_texture()

Brian Paul brianp at kemper.freedesktop.org
Thu Oct 1 14:09:22 UTC 2015


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

Author: Brian Paul <brianp at vmware.com>
Date:   Wed Sep 30 08:58:09 2015 -0600

mesa: fix indentation in _mesa_create_nameless_texture()

---

 src/mesa/main/texobj.c |   18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c
index a1be1e3..4ded949 100644
--- a/src/mesa/main/texobj.c
+++ b/src/mesa/main/texobj.c
@@ -1192,18 +1192,18 @@ invalidate_tex_image_error_check(struct gl_context *ctx, GLuint texture,
 struct gl_texture_object *
 _mesa_create_nameless_texture(struct gl_context *ctx, GLenum target)
 {
-      struct gl_texture_object *texObj = NULL;
-      GLint targetIndex;
+   struct gl_texture_object *texObj = NULL;
+   GLint targetIndex;
 
-      if (target == 0)
-         return texObj;
+   if (target == 0)
+      return texObj;
 
-      texObj = ctx->Driver.NewTextureObject(ctx, 0, target);
-      targetIndex = _mesa_tex_target_to_index(ctx, texObj->Target);
-      assert(targetIndex < NUM_TEXTURE_TARGETS);
-      texObj->TargetIndex = targetIndex;
+   texObj = ctx->Driver.NewTextureObject(ctx, 0, target);
+   targetIndex = _mesa_tex_target_to_index(ctx, texObj->Target);
+   assert(targetIndex < NUM_TEXTURE_TARGETS);
+   texObj->TargetIndex = targetIndex;
 
-      return texObj;
+   return texObj;
 }
 
 /**




More information about the mesa-commit mailing list