Mesa (master): mesa: minor whitespace fixes
Brian Paul
brianp at kemper.freedesktop.org
Thu Mar 24 22:04:20 UTC 2011
Module: Mesa
Branch: master
Commit: e4852ae4d24396daa323652023655fb3b6456ff5
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=e4852ae4d24396daa323652023655fb3b6456ff5
Author: Brian Paul <brianp at vmware.com>
Date: Thu Mar 24 13:15:29 2011 -0600
mesa: minor whitespace fixes
---
src/mesa/main/atifragshader.c | 4 ++--
src/mesa/main/drawpix.c | 2 +-
src/mesa/main/extensions.c | 4 ++--
src/mesa/main/pbo.c | 4 ++--
4 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/mesa/main/atifragshader.c b/src/mesa/main/atifragshader.c
index 44097e1..c74c999 100644
--- a/src/mesa/main/atifragshader.c
+++ b/src/mesa/main/atifragshader.c
@@ -494,7 +494,7 @@ _mesa_PassTexCoordATI(GLuint dst, GLuint coord, GLenum swizzle)
}
}
- curProg->regsAssigned[curProg->cur_pass >> 1] |= 1 << (dst - GL_REG_0_ATI);
+ curProg->regsAssigned[curProg->cur_pass >> 1] |= 1 << (dst - GL_REG_0_ATI);
new_tex_inst(curProg);
/* add the instructions */
@@ -567,7 +567,7 @@ _mesa_SampleMapATI(GLuint dst, GLuint interp, GLenum swizzle)
}
}
- curProg->regsAssigned[curProg->cur_pass >> 1] |= 1 << (dst - GL_REG_0_ATI);
+ curProg->regsAssigned[curProg->cur_pass >> 1] |= 1 << (dst - GL_REG_0_ATI);
new_tex_inst(curProg);
/* add the instructions */
diff --git a/src/mesa/main/drawpix.c b/src/mesa/main/drawpix.c
index fb86036..ee379f7 100644
--- a/src/mesa/main/drawpix.c
+++ b/src/mesa/main/drawpix.c
@@ -188,7 +188,7 @@ _mesa_CopyPixels( GLint srcx, GLint srcy, GLsizei width, GLsizei height,
goto end;
}
- if (!ctx->Current.RasterPosValid || width ==0 || height == 0) {
+ if (!ctx->Current.RasterPosValid || width == 0 || height == 0) {
goto end; /* no-op, not an error */
}
diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c
index 728c73c..d0c08ca 100644
--- a/src/mesa/main/extensions.c
+++ b/src/mesa/main/extensions.c
@@ -753,7 +753,7 @@ _mesa_extension_is_enabled( struct gl_context *ctx, const char *name )
static char *
get_extension_override( struct gl_context *ctx )
{
- const char *env_const= _mesa_getenv("MESA_EXTENSION_OVERRIDE");
+ const char *env_const = _mesa_getenv("MESA_EXTENSION_OVERRIDE");
char *env;
char *ext;
char *extra_exts;
@@ -794,7 +794,7 @@ get_extension_override( struct gl_context *ctx )
}
/* Remove trailing space. */
- len = strlen(extra_exts);
+ len = strlen(extra_exts);
if (extra_exts[len - 1] == ' ')
extra_exts[len - 1] = '\0';
diff --git a/src/mesa/main/pbo.c b/src/mesa/main/pbo.c
index dc00d42..56b26a9 100644
--- a/src/mesa/main/pbo.c
+++ b/src/mesa/main/pbo.c
@@ -81,8 +81,8 @@ _mesa_validate_pbo_access(GLuint dimensions,
format, type, 0, 0, 0);
/* get address just past the last pixel we'll read */
- end = _mesa_image_address(dimensions, pack, ptr, width, height,
- format, type, depth-1, height-1, width);
+ end = _mesa_image_address(dimensions, pack, ptr, width, height,
+ format, type, depth-1, height-1, width);
sizeAddr = ((const GLubyte *) 0) + pack->BufferObj->Size;
More information about the mesa-commit
mailing list