diff options
author | Anuj Phogat <[email protected]> | 2014-06-11 17:57:30 -0700 |
---|---|---|
committer | Anuj Phogat <[email protected]> | 2014-08-04 17:19:20 -0700 |
commit | 9796a1726545eebb6cf387945cd076bb49de2598 (patch) | |
tree | dd05f563df97d8fa6bba2ee42019a859f373d11c /src/mesa/drivers/common/meta.c | |
parent | c7def2257aae3b73ba37609dfbc0a0f35fa99c81 (diff) |
meta: Initialize the variable in declaration statement
Saves one line of code :)
Signed-off-by: Anuj Phogat <[email protected]>
Reviewed-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src/mesa/drivers/common/meta.c')
-rw-r--r-- | src/mesa/drivers/common/meta.c | 4 |
1 files changed, 1 insertions, 3 deletions
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: |