nanogui: GrDrawImageToFit fail with PNG image with alpha layer
Subject:
Re: [nanogui] GrDrawImageToFit fail with PNG image with alpha layer
From:
"Greg Haerr" ####@####.####
Date:
4 Jun 2010 20:59:00 -0000
Message-Id: <103201cb0428$9a5c8a30$0300a8c0@RDP>
: > static void linear24_drawpixel(PSD psd, MWCOORD x, MWCOORD y, MWPIXELVAL
c)
:
: and the assertion looks like:
:
: > assert (c < psd->ncolors);
:
: It seems like the PNG buffer is read as 32 bit values, but the
What version are you running?
The git repository should not have this issue. I am in the
process of moving to alpha-compositing support, so the
assert fails because the high byte of the RGB color value
defaults to 255 alpha, which is outside the 24-bit color
range.
Regards,
Greg