Mesa (master): mesa: white space, comment fixes in mtypes.h

Brian Paul brianp at kemper.freedesktop.org
Wed Sep 14 14:16:52 UTC 2011


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

Author: Brian Paul <brianp at vmware.com>
Date:   Wed Sep 14 08:06:38 2011 -0600

mesa: white space, comment fixes in mtypes.h

"vale" was a typo.  Fix that and do some other minor clean-ups.

---

 src/mesa/main/mtypes.h |   21 ++++++++++++++-------
 1 files changed, 14 insertions(+), 7 deletions(-)

diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
index a439f12..8671ecd 100644
--- a/src/mesa/main/mtypes.h
+++ b/src/mesa/main/mtypes.h
@@ -719,21 +719,28 @@ struct gl_accum_attrib
    GLfloat ClearColor[4];	/**< Accumulation buffer clear color */
 };
 
-union gl_color_union {
+
+/**
+ * Used for storing clear color, texture border color, etc.
+ * The float values are typically unclamped.
+ */
+union gl_color_union
+{
    GLfloat f[4];
    GLint i[4];
    GLuint ui[4];
 };
 
+
 /**
  * Color buffer attribute group (GL_COLOR_BUFFER_BIT).
  */
 struct gl_colorbuffer_attrib
 {
-   GLuint ClearIndex;			/**< Index to use for glClear */
-   union gl_color_union ClearColor;     /**< Color to use for glClear - this vale is unclamped */
-   GLuint IndexMask;			/**< Color index write mask */
-   GLubyte ColorMask[MAX_DRAW_BUFFERS][4];/**< Each flag is 0xff or 0x0 */
+   GLuint ClearIndex;                      /**< Index for glClear */
+   union gl_color_union ClearColor;        /**< Color for glClear, unclamped */
+   GLuint IndexMask;                       /**< Color index write mask */
+   GLubyte ColorMask[MAX_DRAW_BUFFERS][4]; /**< Each flag is 0xff or 0x0 */
 
    GLenum DrawBuffer[MAX_DRAW_BUFFERS];	/**< Which buffer to draw into */
 
@@ -753,8 +760,8 @@ struct gl_colorbuffer_attrib
    /*@{*/
    GLbitfield BlendEnabled;		/**< Per-buffer blend enable flags */
 
-   /* NOTE: this does _not_ depend on fragment clamping or any other clamping control,
-    * only on the fixed-pointness of the render target.
+   /* NOTE: this does _not_ depend on fragment clamping or any other clamping
+    * control, only on the fixed-pointness of the render target.
     * The query does however depend on fragment color clamping.
     */
    GLfloat BlendColorUnclamped[4];               /**< Blending color */




More information about the mesa-commit mailing list