Skip to content

Commit 65b5faf

Browse files
committed
.
1 parent de311f4 commit 65b5faf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

constixel.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2548,7 +2548,7 @@ class format_32bit : public format {
25482548
uint8x8_t px = vld1_u8(&data[off]);
25492549
float32x4_t src = {colr, colg, colb, cola};
25502550
float32x4_t dst = {hidden::a2al_8bit[px[0]], hidden::a2al_8bit[px[1]], hidden::a2al_8bit[px[2]],
2551-
hidden::a2al_8bit[px[3]]};
2551+
static_cast<float>(px[3]) * (1.0f / 255.0f)};
25522552
float32x4_t one = vdupq_n_f32(1.0f);
25532553
float32x4_t inv_srca = vsubq_f32(one, vdupq_n_f32(cola));
25542554
float32x4_t blended = vmlaq_f32(vmulq_n_f32(src, cola), dst, inv_srca);

0 commit comments

Comments
 (0)