diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2017-04-27 09:48:15 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2017-04-27 09:48:15 -0700 |
commit | fc4e5f9d1e734affab9917558f19102a1331942f (patch) | |
tree | 13db7411dafa195d880e53a7551fd2b648e7fd23 /src/modules/ray/ray_light_emitter.h | |
parent | 3d4ab5e29e6187d5e97892a7f8a1ce73e809e0cd (diff) |
sparkler: respect fragment->frame_{width,height}
should_draw_expire_if_oob() assumed the fragment represented the entire
frame. Instead, return 0 if the coordinates are outside the fragment,
but only reset longevity if outside of the frame.
If sparkler goes threaded in the drawing, this would result in threads
simply skipping particles outside the fragment. The longevity reset
occurring in all threads appears suspicious but should be benign since
they all write the same thing - 0.
Diffstat (limited to 'src/modules/ray/ray_light_emitter.h')
0 files changed, 0 insertions, 0 deletions