summaryrefslogtreecommitdiff
path: root/modules/basis_universal
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-03-27 16:04:01 +0100
committerRémi Verschelde <rverschelde@gmail.com>2020-03-30 18:27:36 +0200
commitf097511b96c7e93f0d62b1c2818208dc11c19851 (patch)
treefbe9884d1dd8aebcd37a85a40b750e53b1bd1a2f /modules/basis_universal
parentb383484e445b1554c811556181a7815e0308fd62 (diff)
Fix another batch of -Wmaybe-uninitialized warnings
And simplify code in CSGShape.
Diffstat (limited to 'modules/basis_universal')
-rw-r--r--modules/basis_universal/register_types.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/basis_universal/register_types.cpp b/modules/basis_universal/register_types.cpp
index bf6bc1debd..6b74b8bf4a 100644
--- a/modules/basis_universal/register_types.cpp
+++ b/modules/basis_universal/register_types.cpp
@@ -158,8 +158,8 @@ static Ref<Image> basis_universal_unpacker(const Vector<uint8_t> &p_buffer) {
const uint8_t *ptr = r;
int size = p_buffer.size();
- basist::transcoder_texture_format format;
- Image::Format imgfmt;
+ basist::transcoder_texture_format format = basist::transcoder_texture_format::cTFTotalTextureFormats;
+ Image::Format imgfmt = Image::FORMAT_MAX;
switch (*(uint32_t *)(ptr)) {
case BASIS_DECOMPRESS_RG: {