Skip to content

Commit

Permalink
Fix astc_blend_test util (#479)
Browse files Browse the repository at this point in the history
  • Loading branch information
solidpixel authored Aug 5, 2024
1 parent 213d6c2 commit e97e799
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Utils/astc_blend_test.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// SPDX-License-Identifier: Apache-2.0
// ----------------------------------------------------------------------------
// Copyright 2021 Arm Limited
// Copyright 2021-2024 Arm Limited
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not
// use this file except in compliance with the License. You may obtain a copy
Expand Down Expand Up @@ -110,7 +110,7 @@ int main(int argc, char **argv)
}
else if (!strcmp(argv[5], "off"))
{
use_filter == false;
use_filter = false;
}
else
{
Expand All @@ -136,7 +136,7 @@ int main(int argc, char **argv)
exit(1);
}

// For each pixel apply RGBM encoding
// For each pixel blending and filtering
if (!use_filter)
{
for (int y = 0; y < dim_y; y++)
Expand All @@ -161,9 +161,9 @@ int main(int argc, char **argv)
b_src = srgb_to_linear(b_src);
}

float r_dst = 0.8f;
float g_dst = 1.0f;
float b_dst = 0.8f;
float r_dst = 0.53f;
float g_dst = 0.53f;
float b_dst = 0.53f;

float r_out;
float g_out;
Expand Down

0 comments on commit e97e799

Please sign in to comment.