Skip to content

Commit

Permalink
Fix certain channel masks for Texture previewer
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueCube3310 committed Jan 15, 2025
1 parent 4ce466d commit 271067e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions core/io/image.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3993,11 +3993,11 @@ uint32_t Image::get_format_component_mask(Format p_format) {
case FORMAT_RGBAH:
return rgba;
case FORMAT_RGBE9995:
return rgba;
return rgb;
case FORMAT_DXT1:
return rgb;
case FORMAT_DXT3:
return rgb;
return rgba;
case FORMAT_DXT5:
return rgba;
case FORMAT_RGTC_R:
Expand Down Expand Up @@ -4027,9 +4027,9 @@ uint32_t Image::get_format_component_mask(Format p_format) {
case FORMAT_ETC2_RGB8A1:
return rgba;
case FORMAT_ETC2_RA_AS_RG:
return rgba;
return rg;
case FORMAT_DXT5_RA_AS_RG:
return rgba;
return rg;
case FORMAT_ASTC_4x4:
return rgba;
case FORMAT_ASTC_4x4_HDR:
Expand Down

0 comments on commit 271067e

Please sign in to comment.