diff options
author | Brian Paul <[email protected]> | 2011-09-14 08:06:38 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2011-09-14 08:15:59 -0600 |
commit | 4d21ecde7702852f30a4f3b90af0e9811b230c63 (patch) | |
tree | d3341c40b3a5c5cf613a1410d612e06bd1ab8677 /src/mesa/main | |
parent | e911dbb56374edf9f3b7c4cec0cf9a22738bb198 (diff) |
mesa: white space, comment fixes in mtypes.h
"vale" was a typo. Fix that and do some other minor clean-ups.
Diffstat (limited to 'src/mesa/main')
-rw-r--r-- | 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 a439f129d72..8671ecda927 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 */ |