Skip to content

Commit 1b2ab9a

Browse files
committed
wrong pointer fix
buffer pointer to correct bit depth alpha was mixed with wrong
1 parent 9709c41 commit 1b2ab9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Solidify.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ bool solidify_main(const std::string& inputFileName, const std::string& outputFi
193193
}
194194

195195
bool ok = ImageBufAlgo::mul(input_buf, input_buf, grayscale ? mask_pair.first : mask_pair.second);
196-
ok = ok && ImageBufAlgo::channel_append(rgba_buf, input_buf, bit_alpha_buf);
196+
ok = ok && ImageBufAlgo::channel_append(rgba_buf, input_buf, *alpha_buf_ptr);
197197
if (!ok) {
198198
std::cerr << "Error: " << rgba_buf.geterror() << std::endl;
199199
return false;

0 commit comments

Comments
 (0)