Remove code relative to obsoleted ETC texture format

Co-authored-by: BlueCube3310 <53150244+BlueCube3310@users.noreply.github.com>
This commit is contained in:
Rémi Verschelde 2024-02-14 14:43:10 +01:00
parent 907db8eebc
commit e457f41f9b
No known key found for this signature in database
GPG key ID: C3336907360768E1
10 changed files with 6 additions and 21 deletions

View file

@ -190,9 +190,9 @@ static Ref<Image> basis_universal_unpacker_ptr(const uint8_t *p_data, int p_size
} else if (RS::get_singleton()->has_os_feature("s3tc")) {
format = basist::transcoder_texture_format::cTFBC1; // get this from renderer
imgfmt = Image::FORMAT_DXT1;
} else if (RS::get_singleton()->has_os_feature("etc")) {
} else if (RS::get_singleton()->has_os_feature("etc2")) {
format = basist::transcoder_texture_format::cTFETC1; // get this from renderer
imgfmt = Image::FORMAT_ETC;
imgfmt = Image::FORMAT_ETC2_RGB8;
} else {
format = basist::transcoder_texture_format::cTFBGR565; // get this from renderer
imgfmt = Image::FORMAT_RGB565;