OpenGL render PNG image use linear filter have white border -


nearest filter, correct:

nearset

if use linear filter:

linear

why? , how aviod it.

update:

if use 1 , 1 - srcalpha, alpha channel lost: update image

i think not premultiplied alpha problem.

in shape margin, pixel color #fff, alpha value 0.0, still sampled... maybe library bug.

it premultiplied alpha problem: instead of blending src_alpha,one_minus_src_alpha blend one, one_minus_src_alpha.


Comments