You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 19:41:11 +00:00
Fixed implicit conversion of uint32_t to uint8_t in image
This commit is contained in:
@@ -797,7 +797,7 @@ static void _scale_bilinear(const uint8_t *__restrict p_src, uint8_t *__restrict
|
||||
uint32_t interp_down = p01 + (((p11 - p01) * src_xofs_frac) >> FRAC_BITS);
|
||||
uint32_t interp = interp_up + (((interp_down - interp_up) * src_yofs_frac) >> FRAC_BITS);
|
||||
interp >>= FRAC_BITS;
|
||||
p_dst[i * p_dst_width * CC + j * CC + l] = interp;
|
||||
p_dst[i * p_dst_width * CC + j * CC + l] = uint8_t(interp);
|
||||
} else if (sizeof(T) == 2) { //half float
|
||||
|
||||
float xofs_frac = float(src_xofs_frac) / (1 << FRAC_BITS);
|
||||
|
||||
Reference in New Issue
Block a user