Fixed preserving color channels when scaling image with alpha channel.

This commit is contained in:
Branimir Karadžić
2017-09-13 21:40:15 -07:00
parent 8ef40d4056
commit 0720da91d8

View File

@@ -341,7 +341,7 @@ namespace bimg
(const float*)srcData, _src->m_width, _src->m_height, _src->m_width*16
, ( float*)dstData, _dst->m_width, _dst->m_height, _dst->m_width*16
, 4, 3
, 0
, STBIR_FLAG_ALPHA_PREMULTIPLIED
, STBIR_EDGE_CLAMP
, STBIR_FILTER_DEFAULT
, STBIR_COLORSPACE_LINEAR