mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
meta: Initialize the variable in declaration statement
Saves one line of code :) Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
This commit is contained in:
parent
c7def2257a
commit
9796a17265
1 changed files with 1 additions and 3 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue