Skip to content

Commit

Permalink
Merge pull request #86916 from BlueCube3310/basisu-etc2-ra-rg
Browse files Browse the repository at this point in the history
Fix `BasisUniversal` ETC RA as RG transcoding
  • Loading branch information
akien-mga committed Jan 11, 2024
2 parents 00cc362 + 51ad937 commit 8616487
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/basis_universal/register_types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ static Ref<Image> basis_universal_unpacker_ptr(const uint8_t *p_data, int p_size
imgfmt = Image::FORMAT_DXT5_RA_AS_RG;
} else if (RS::get_singleton()->has_os_feature("etc2")) {
format = basist::transcoder_texture_format::cTFETC2; // get this from renderer
imgfmt = Image::FORMAT_ETC2_RGBA8;
imgfmt = Image::FORMAT_ETC2_RA_AS_RG;
} else {
//opengl most likely, bad for normal maps, nothing to do about this.
format = basist::transcoder_texture_format::cTFRGBA32;
Expand Down

0 comments on commit 8616487

Please sign in to comment.