mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Remove code relative to obsoleted ETC texture format
Co-authored-by: BlueCube3310 <53150244+BlueCube3310@users.noreply.github.com>
This commit is contained in:
parent
907db8eebc
commit
e457f41f9b
10 changed files with 6 additions and 21 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue