From 68cd0e200092b064c5964a02c137f5b98c96e5f0 Mon Sep 17 00:00:00 2001 From: Timothy Arceri Date: Thu, 4 May 2017 16:36:40 +1000 Subject: mesa: fix broken indentation Reviewed-by: Eric Anholt --- src/mesa/main/texparam.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/mesa/main/texparam.c b/src/mesa/main/texparam.c index 25165e4eded..0156bbd2750 100644 --- a/src/mesa/main/texparam.c +++ b/src/mesa/main/texparam.c @@ -1405,16 +1405,15 @@ get_tex_level_parameter_image(struct gl_context *ctx, /* GL_ARB_texture_compression */ case GL_TEXTURE_COMPRESSED_IMAGE_SIZE: - if (_mesa_is_format_compressed(texFormat) && + if (_mesa_is_format_compressed(texFormat) && !_mesa_is_proxy_texture(target)) { *params = _mesa_format_image_size(texFormat, img->Width, img->Height, img->Depth); - } - else { - _mesa_error(ctx, GL_INVALID_OPERATION, - "glGetTex%sLevelParameter[if]v(pname=%s)", suffix, - _mesa_enum_to_string(pname)); - } + } else { + _mesa_error(ctx, GL_INVALID_OPERATION, + "glGetTex%sLevelParameter[if]v(pname=%s)", suffix, + _mesa_enum_to_string(pname)); + } break; case GL_TEXTURE_COMPRESSED: *params = (GLint) _mesa_is_format_compressed(texFormat); -- cgit v1.2.3