Mesa (master): mesa: whitespace and comment clean-up

Brian Paul brianp at kemper.freedesktop.org
Fri Apr 3 23:30:45 UTC 2009


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

Author: Brian Paul <brianp at vmware.com>
Date:   Fri Apr  3 16:51:04 2009 -0600

mesa: whitespace and comment clean-up

---

 src/mesa/main/texstore.c |   27 ++++++++++++++++-----------
 1 files changed, 16 insertions(+), 11 deletions(-)

diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c
index a94df53..c65b9a9 100644
--- a/src/mesa/main/texstore.c
+++ b/src/mesa/main/texstore.c
@@ -3940,21 +3940,26 @@ linear_to_nonlinear(GLfloat cl)
 
 #endif /* FEATURE_EXT_texture_sRGB */
 
+
+/**
+ * Can the given type represent negative values?
+ */
 static INLINE GLboolean
 type_with_negative_values(GLenum type)
 {
-    switch (type) {
-    case GL_BYTE:
-    case GL_SHORT:
-    case GL_INT:
-    case GL_FLOAT:
-    case GL_HALF_FLOAT_ARB:
-       return GL_TRUE;
+   switch (type) {
+   case GL_BYTE:
+   case GL_SHORT:
+   case GL_INT:
+   case GL_FLOAT:
+   case GL_HALF_FLOAT_ARB:
+      return GL_TRUE;
    default:
       return GL_FALSE;
-    }
+   }
 }
 
+
 /**
  * This is the software fallback for Driver.GetTexImage().
  * All error checking will have been done before this routine is called.
@@ -4107,9 +4112,9 @@ _mesa_get_teximage(GLcontext *ctx, GLenum target, GLint level,
                GLbitfield transferOps = 0x0;
 
                /* clamp does not apply to GetTexImage (final conversion)?
-                  Looks like we need clamp though when going from format containing
-                  negative values to unsigned format */
-
+                * Looks like we need clamp though when going from format
+                * containing negative values to unsigned format.
+                */
                if (!type_with_negative_values(type) &&
                    (texImage->TexFormat->DataType == GL_FLOAT ||
                    texImage->TexFormat->DataType == GL_SIGNED_NORMALIZED))




More information about the mesa-commit mailing list