Mesa (master): st/mesa: fix comments, whitespace

Brian Paul brianp at kemper.freedesktop.org
Tue Jun 14 23:28:23 UTC 2011


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

Author: Brian Paul <brianp at vmware.com>
Date:   Tue Jun 14 08:40:43 2011 -0600

st/mesa: fix comments, whitespace

---

 src/mesa/state_tracker/st_draw.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/mesa/state_tracker/st_draw.c b/src/mesa/state_tracker/st_draw.c
index 1bb9b80..7f74e78 100644
--- a/src/mesa/state_tracker/st_draw.c
+++ b/src/mesa/state_tracker/st_draw.c
@@ -33,7 +33,7 @@
  *
  * We basically convert the VBO's vertex attribute/array information into
  * Gallium vertex state, bind the vertex buffer objects and call
- * pipe->draw_elements(), pipe->draw_range_elements() or pipe->draw_arrays().
+ * pipe->draw_vbo().
  *
  * Authors:
  *   Keith Whitwell <keith at tungstengraphics.com>
@@ -498,6 +498,7 @@ setup_index_buffer(struct gl_context *ctx,
    }
 }
 
+
 /**
  * Prior to drawing, check that any uniforms referenced by the
  * current shader have been set.  If a uniform has not been set,
@@ -544,8 +545,8 @@ translate_prim(const struct gl_context *ctx, unsigned prim)
    assert(GL_TRIANGLE_STRIP_ADJACENCY == PIPE_PRIM_TRIANGLE_STRIP_ADJACENCY);
 
    /* Avoid quadstrips if it's easy to do so:
-    * Note: it's imporant to do the correct trimming if we change the prim type!
-    * We do that wherever this function is called.
+    * Note: it's important to do the correct trimming if we change the
+    * prim type!  We do that wherever this function is called.
     */
    if (prim == GL_QUAD_STRIP &&
        ctx->Light.ShadeModel != GL_FLAT &&




More information about the mesa-commit mailing list