mirror of
https://github.com/bkaradzic/bimg.git
synced 2026-02-18 13:03:06 +01:00
Fixed preserving color channels when scaling image with alpha channel.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user