diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2011-11-26 12:50:28 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2011-11-26 12:50:28 (GMT) |
| commit | 93f58379747122e04701ac23e05159aa582b2d2b (patch) | |
| tree | 4407193afa26da940bc225970b95506151bf4eb4 /src | |
| parent | 047a39498d46181e60e9eef4b8a0958493a28630 (diff) | |
| download | powder-93f58379747122e04701ac23e05159aa582b2d2b.zip powder-93f58379747122e04701ac23e05159aa582b2d2b.tar.gz | |
Fix bug with PIPE where particles would have an incorrect colour if they didn't explicitly set the colr/g/b in its own graphics update
Diffstat (limited to 'src')
| -rw-r--r-- | src/elements/pipe.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/elements/pipe.c b/src/elements/pipe.c index afb4b4e..61c56f6 100644 --- a/src/elements/pipe.c +++ b/src/elements/pipe.c @@ -268,6 +268,9 @@ int graphics_PIPE(GRAPHICS_FUNC_ARGS) } else { + *colr = PIXR(ptypes[t].pcolors); + *colg = PIXR(ptypes[t].pcolors); + *colb = PIXR(ptypes[t].pcolors); if (ptypes[t].graphics_func) { (*(ptypes[t].graphics_func))(&tpart, nx, ny, pixel_mode, cola, colr, colg, colb, firea, firer, fireg, fireb); |
