Skip to content

Commit ddf3f5e

Browse files
committed
changing HDR texarray sample to use linear not sRGB to avoid warning
1 parent 8f61a1b commit ddf3f5e

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

bin/example_mt.wasm

56.2 KB
Binary file not shown.

bin/example_st.wasm

-60 Bytes
Binary file not shown.

example/example.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1661,8 +1661,8 @@ static bool test_compress_uastc_hdr_6x6i_array_custom_mipmap()
16611661
// Set the format to UASTC HDR 6x6i using the recommended unified method.
16621662
params.set_format_mode_and_quality_effort(basist::basis_tex_format::cUASTC_HDR_6x6_INTERMEDIATE, 75, 3);
16631663

1664-
// Input is sRGB
1665-
params.set_srgb_options(true);
1664+
// Input is linear
1665+
params.set_srgb_options(false);
16661666

16671667
// Create the array slices
16681668
for (uint32_t array_index = 0; array_index < ARRAY_SIZE; array_index++)
@@ -1735,7 +1735,7 @@ static bool lowlevel_compression_tests()
17351735
{
17361736
// basisu_encoder_init() MUST have been called before this point.
17371737
basisu_encoder_init();
1738-
1738+
17391739
if (!test_compress_etc1s())
17401740
return false;
17411741

@@ -1765,7 +1765,7 @@ static bool lowlevel_compression_tests()
17651765

17661766
if (!test_compress_uastc_hdr_6x6i_array_custom_mipmap())
17671767
return false;
1768-
1768+
17691769
printf("lowlevel_compression_tests: Compression OK\n");
17701770

17711771
return true;

0 commit comments

Comments
 (0)