Fix for a potential crasher bug in the textured brush code, as found

by Andrea (thanks!). This code is known to run OK in the release builds
though, so not that big a deal.
This commit is contained in:
2007-02-19 16:25:44 +00:00
parent 95ac2acf39
commit 25f7d6693f

View File

@@ -364,7 +364,7 @@ void brush_sample_tex(Brush *brush, float *xy, float *rgba)
void brush_imbuf_new(Brush *brush, short flt, short texfall, int size, ImBuf **outbuf)
{
ImBuf *ibuf;
float xy[2], dist, rgba[3], *dstf;
float xy[2], dist, rgba[4], *dstf;
int x, y, rowbytes, xoff, yoff, imbflag;
char *dst, crgb[3];