When I tested, I put the conditional return statement before the PLATFORM_ASSERT
line:
void SurfaceImpl::DrawRGBAImage(PRectangle rc, int width, int height, const unsigned char *pixelsImage) {
if (width == 0) return;
PLATFORM_ASSERT(context);
I noticed in your commit that you put it after. What if the PLATFORM_ASSERT
is the origin of the abort?
void SurfaceImpl::DrawRGBAImage(PRectangle rc, int width, int height, const unsigned char *pixelsImage) {
PLATFORM_ASSERT(context);
+ if (width == 0)
+ return;
if (rc.Width() > width)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.