Fix another batch of -Wmaybe-uninitialized warnings

And simplify code in CSGShape.
This commit is contained in:
Rémi Verschelde
2020-03-27 16:04:01 +01:00
parent b383484e44
commit f097511b96
3 changed files with 8 additions and 11 deletions

View File

@ -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: {