Skip to content

Commit

Permalink
chore: fix minor formatting nit
Browse files Browse the repository at this point in the history
  • Loading branch information
fallenoak committed Dec 5, 2023
1 parent 445cb0d commit a20f149
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib/blp/dxt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ const dxt1GenerateColorLookup = (color0: number, color1: number) => {
COLOR_LOOKUP[2] = b0;
COLOR_LOOKUP[3] = 255;

COLOR_LOOKUP[ 4] = r1;
COLOR_LOOKUP[ 5] = g1;
COLOR_LOOKUP[ 6] = b1;
COLOR_LOOKUP[ 7] = 255;
COLOR_LOOKUP[4] = r1;
COLOR_LOOKUP[5] = g1;
COLOR_LOOKUP[6] = b1;
COLOR_LOOKUP[7] = 255;

if (color0 > color1) {
COLOR_LOOKUP[ 8] = ((2 * r0 + 1 * r1) / 3) | 0;
Expand Down

0 comments on commit a20f149

Please sign in to comment.