projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7def22
)
meta: Initialize the variable in declaration statement
author
Anuj Phogat
<anuj.phogat@gmail.com>
Thu, 12 Jun 2014 00:57:30 +0000
(17:57 -0700)
committer
Anuj Phogat
<anuj.phogat@gmail.com>
Tue, 5 Aug 2014 00:19:20 +0000
(17:19 -0700)
Saves one line of code :)
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/common/meta.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/common/meta.c
b/src/mesa/drivers/common/meta.c
index 606b604bcfbf359b4bbf265ffde8798197ba3588..a2a7b2d48ffa16d41bf0d1eda6f964699a079f76 100644
(file)
--- 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: