From 9796a1726545eebb6cf387945cd076bb49de2598 Mon Sep 17 00:00:00 2001 From: Anuj Phogat Date: Wed, 11 Jun 2014 17:57:30 -0700 Subject: meta: Initialize the variable in declaration statement Saves one line of code :) Signed-off-by: Anuj Phogat Reviewed-by: Topi Pohjolainen --- src/mesa/drivers/common/meta.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/mesa/drivers') diff --git a/src/mesa/drivers/common/meta.c b/src/mesa/drivers/common/meta.c index 606b604bcfb..a2a7b2d48ff 100644 --- a/src/mesa/drivers/common/meta.c +++ b/src/mesa/drivers/common/meta.c @@ -2732,9 +2732,7 @@ _mesa_meta_blit_shader_table_cleanup(struct blit_shader_table *table) static GLenum get_temp_image_type(struct gl_context *ctx, mesa_format format) { - GLenum baseFormat; - - baseFormat = _mesa_get_format_base_format(format); + const GLenum baseFormat = _mesa_get_format_base_format(format); switch (baseFormat) { case GL_RGBA: -- cgit v1.2.3