Fixed blending (for now)
This commit is contained in:
@@ -88,7 +88,7 @@ int32_t TextureTool::start() {
|
||||
STBIR_TYPE_UINT8,
|
||||
STBI_rgb_alpha, -1, 0,
|
||||
STBIR_EDGE_CLAMP, STBIR_EDGE_CLAMP,
|
||||
STBIR_FILTER_BOX, STBIR_FILTER_BOX,
|
||||
STBIR_FILTER_DEFAULT, STBIR_FILTER_DEFAULT,
|
||||
STBIR_COLORSPACE_LINEAR, NULL,
|
||||
s0, t0, s1, t1
|
||||
);
|
||||
@@ -108,7 +108,7 @@ int32_t TextureTool::start() {
|
||||
bufferCurrent, currentWidth, currentHeight, 0,
|
||||
bufferTemporary, scaleWidth, scaleHeight, 0,
|
||||
STBI_rgb_alpha, -1, 0,
|
||||
STBIR_EDGE_CLAMP, STBIR_FILTER_TRIANGLE, STBIR_COLORSPACE_LINEAR,
|
||||
STBIR_EDGE_CLAMP, STBIR_FILTER_DEFAULT, STBIR_COLORSPACE_LINEAR,
|
||||
NULL
|
||||
);
|
||||
memcpy(bufferCurrent, bufferTemporary, sizeof(uint8_t) * len);
|
||||
|
Reference in New Issue
Block a user