summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mesa/main/teximage.c38
-rw-r--r--src/mesa/main/texstate.c18
2 files changed, 28 insertions, 28 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index d815d513591..8b4a611e9ee 100644
--- a/src/mesa/main/teximage.c
+++ b/src/mesa/main/teximage.c
@@ -742,7 +742,7 @@ proxy_target(GLenum target)
*/
struct gl_texture_image *
_mesa_select_tex_image(const struct gl_texture_object *texObj,
- GLenum target, GLint level)
+ GLenum target, GLint level)
{
const GLuint face = _mesa_tex_target_to_face(target);
@@ -2234,14 +2234,14 @@ compressed_texture_error_check(struct gl_context *ctx, GLint dimensions,
case GL_PALETTE8_RGB5_A1_OES:
/* check level (note that level should be zero or less!) */
if (level > 0 || level < -maxLevels) {
- reason = "level";
- error = GL_INVALID_VALUE;
+ reason = "level";
+ error = GL_INVALID_VALUE;
goto error;
}
if (dimensions != 2) {
- reason = "compressed paletted textures must be 2D";
- error = GL_INVALID_OPERATION;
+ reason = "compressed paletted textures must be 2D";
+ error = GL_INVALID_OPERATION;
goto error;
}
@@ -2249,7 +2249,7 @@ compressed_texture_error_check(struct gl_context *ctx, GLint dimensions,
* checked against the actual size later.
*/
expectedSize = _mesa_cpal_compressed_size(level, internalFormat,
- width, height);
+ width, height);
/* This is for the benefit of the TestProxyTexImage below. It expects
* level to be non-negative. OES_compressed_paletted_texture uses a
@@ -2264,8 +2264,8 @@ compressed_texture_error_check(struct gl_context *ctx, GLint dimensions,
default:
/* check level */
if (level < 0 || level >= maxLevels) {
- reason = "level";
- error = GL_INVALID_VALUE;
+ reason = "level";
+ error = GL_INVALID_VALUE;
goto error;
}
@@ -2496,10 +2496,9 @@ copytexture_error_check( struct gl_context *ctx, GLuint dimensions,
}
if (ctx->ReadBuffer->Visual.samples > 0) {
- _mesa_error(ctx, GL_INVALID_OPERATION,
- "glCopyTexImage%dD(multisample FBO)",
- dimensions);
- return GL_TRUE;
+ _mesa_error(ctx, GL_INVALID_OPERATION,
+ "glCopyTexImage%dD(multisample FBO)", dimensions);
+ return GL_TRUE;
}
}
@@ -2792,10 +2791,11 @@ copytexsubimage_error_check(struct gl_context *ctx, GLuint dimensions,
/* From the EXT_texture_integer spec:
*
- * "INVALID_OPERATION is generated by CopyTexImage* and CopyTexSubImage*
- * if the texture internalformat is an integer format and the read color
- * buffer is not an integer format, or if the internalformat is not an
- * integer format and the read color buffer is an integer format."
+ * "INVALID_OPERATION is generated by CopyTexImage* and
+ * CopyTexSubImage* if the texture internalformat is an integer format
+ * and the read color buffer is not an integer format, or if the
+ * internalformat is not an integer format and the read color buffer
+ * is an integer format."
*/
if (_mesa_is_color_format(texImage->InternalFormat)) {
struct gl_renderbuffer *rb = ctx->ReadBuffer->_ColorReadBuffer;
@@ -3336,13 +3336,13 @@ _mesa_EGLImageTargetTexture2DOES (GLenum target, GLeglImageOES image)
if (!valid_target) {
_mesa_error(ctx, GL_INVALID_ENUM,
- "glEGLImageTargetTexture2D(target=%d)", target);
+ "glEGLImageTargetTexture2D(target=%d)", target);
return;
}
if (!image) {
_mesa_error(ctx, GL_INVALID_OPERATION,
- "glEGLImageTargetTexture2D(image=%p)", image);
+ "glEGLImageTargetTexture2D(image=%p)", image);
return;
}
@@ -3354,7 +3354,7 @@ _mesa_EGLImageTargetTexture2DOES (GLenum target, GLeglImageOES image)
if (texObj->Immutable) {
_mesa_error(ctx, GL_INVALID_OPERATION,
- "glEGLImageTargetTexture2D(texture is immutable)");
+ "glEGLImageTargetTexture2D(texture is immutable)");
_mesa_unlock_texture(ctx, texObj);
return;
}
diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c
index e0f08521832..36eefa6e654 100644
--- a/src/mesa/main/texstate.c
+++ b/src/mesa/main/texstate.c
@@ -22,7 +22,7 @@
* OTHER DEALINGS IN THE SOFTWARE.
*/
-/**
+/**
* \file texstate.c
*
* Texture state handling.
@@ -153,7 +153,7 @@ _mesa_print_texunit_state( struct gl_context *ctx, GLuint unit )
/**
* Convert "classic" texture environment to ARB_texture_env_combine style
* environments.
- *
+ *
* \param state texture_env_combine state vector to be filled-in.
* \param mode Classic texture environment mode (i.e., \c GL_REPLACE,
* \c GL_BLEND, \c GL_DECAL, etc.).
@@ -186,7 +186,7 @@ calculate_derived_texenv( struct gl_tex_env_combine_state *state,
case GL_YCBCR_MESA:
state->SourceA[0] = GL_PREVIOUS;
break;
-
+
default:
_mesa_problem(NULL,
"Invalid texBaseFormat 0x%x in calculate_derived_texenv",
@@ -203,7 +203,7 @@ calculate_derived_texenv( struct gl_tex_env_combine_state *state,
mode_rgb = (texBaseFormat == GL_ALPHA) ? GL_REPLACE : mode;
mode_a = mode;
break;
-
+
case GL_DECAL:
mode_rgb = GL_INTERPOLATE;
mode_a = GL_REPLACE;
@@ -272,7 +272,7 @@ calculate_derived_texenv( struct gl_tex_env_combine_state *state,
mode);
return;
}
-
+
state->ModeRGB = (state->SourceRGB[0] != GL_PREVIOUS)
? mode_rgb : GL_REPLACE;
state->ModeA = (state->SourceA[0] != GL_PREVIOUS)
@@ -769,11 +769,11 @@ _mesa_update_texture( struct gl_context *ctx, GLuint new_state )
/**
* Allocate the proxy textures for the given context.
- *
+ *
* \param ctx the context to allocate proxies for.
- *
+ *
* \return GL_TRUE on success, or GL_FALSE on failure
- *
+ *
* If run out of memory part way through the allocations, clean up and return
* GL_FALSE.
*/
@@ -944,7 +944,7 @@ _mesa_free_texture_data(struct gl_context *ctx)
/**
* Update the default texture objects in the given context to reference those
- * specified in the shared state and release those referencing the old
+ * specified in the shared state and release those referencing the old
* shared state.
*/
void