From 4d21ecde7702852f30a4f3b90af0e9811b230c63 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 14 Sep 2011 08:06:38 -0600 Subject: [PATCH] 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 file 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 */ -- 2.30.2