godot/servers/visual
Rémi Verschelde f725bd99f4 Fix some -Wmaybe-uninitialized warnings
Namely:
```
modules/basis_universal/register_types.cpp: In function 'Ref<Image> basis_universal_unpacker(const Vector<unsigned char>&)':
modules/basis_universal/register_types.cpp:266:15: warning: 'imgfmt' may be used uninitialized in this function [-Wmaybe-uninitialized]
  266 |  image->create(info.m_width, info.m_height, info.m_total_levels > 1, imgfmt, gpudata);
      |  ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
modules/basis_universal/register_types.cpp:255:39: warning: 'format' may be used uninitialized in this function [-Wmaybe-uninitialized]
  255 |    bool ret = tr.transcode_image_level(ptr, size, 0, i, dst + ofs, level.m_total_blocks - i, format);
      |               ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```

```
servers/visual_server.cpp: In member function 'Error VisualServer::_surface_set_data(Array, uint32_t, uint32_t*, uint32_t, Vector<unsigned char>&, int, Vector<unsigned char>&, int, AABB&, Vector<AABB>&)':
servers/visual_server.cpp:636:15: warning: 'iw' may be used uninitialized in this function [-Wmaybe-uninitialized]
  636 |       copymem(&iw[i * 2], &v, 2);
      |               ^
```

```
core/image.cpp: In member function 'Error Image::generate_mipmap_roughness(Image::RoughnessChannel, const Ref<Image>&)':
core/image.cpp:1683:11: warning: 'roughness' may be used uninitialized in this function [-Wmaybe-uninitialized]
 1683 |     float roughness;
      |           ^~~~~~~~~
```
2020-03-27 14:33:06 +01:00
..
rasterizer_rd Fix some -Wmaybe-uninitialized warnings 2020-03-27 14:33:06 +01:00
rasterizer.cpp Rewrote large part of rendering, omni and spot shadows now work. 2020-02-11 12:01:18 +01:00
rasterizer.h Added a Window node, and made it the scene root. 2020-03-26 15:49:38 +01:00
rendering_device.cpp PoolVector is gone, replaced by Vector 2020-02-18 10:10:36 +01:00
rendering_device.h Added a Window node, and made it the scene root. 2020-03-26 15:49:38 +01:00
SCsub Custom material support seems complete. 2020-02-11 11:53:29 +01:00
shader_language.cpp Fix incorrect shader block parsing 2020-03-20 17:24:00 +03:00
shader_language.h Allow to reassign local variables in shaders 2020-03-20 14:09:43 +03:00
shader_types.cpp Replace subpass textures with color in sky shader 2020-03-24 10:11:00 -07:00
shader_types.h Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
visual_server_canvas.cpp Turn Rect2's 'intersects_touch()' into an extra argument of 'intersects()' 2020-03-04 09:32:34 -03:00
visual_server_canvas.h PoolVector is gone, replaced by Vector 2020-02-18 10:10:36 +01:00
visual_server_globals.cpp Update copyright statements to 2020 2020-01-01 11:16:22 +01:00
visual_server_globals.h Custom material support seems complete. 2020-02-11 11:53:29 +01:00
visual_server_raster.cpp Effective DisplayServer separation, rename X11 -> LinuxBSD 2020-03-26 15:49:34 +01:00
visual_server_raster.h Added a Window node, and made it the scene root. 2020-03-26 15:49:38 +01:00
visual_server_scene.cpp PoolVector is gone, replaced by Vector 2020-02-18 10:10:36 +01:00
visual_server_scene.h ObjectID converted to a structure, fixes many bugs where used incorrectly as 32 bits. 2020-02-12 14:24:54 -03:00
visual_server_viewport.cpp Open sub-windows as embedded if the OS does not support them 2020-03-26 15:49:43 +01:00
visual_server_viewport.h Open sub-windows as embedded if the OS does not support them 2020-03-26 15:49:43 +01:00
visual_server_wrap_mt.cpp Effective DisplayServer separation, rename X11 -> LinuxBSD 2020-03-26 15:49:34 +01:00
visual_server_wrap_mt.h Added a Window node, and made it the scene root. 2020-03-26 15:49:38 +01:00