diff options
author | Owen Williams <owilliams@mixxx.org> | 2014-04-07 10:37:57 -0400 |
---|---|---|
committer | Owen Williams <owilliams@mixxx.org> | 2014-04-07 10:38:23 -0400 |
commit | fce1af36672aef25679a5aebe515e3dc6f4f7d3c (patch) | |
tree | dec2fcdef770dbef2e64083766129ef9d9f37550 /res/shaders | |
parent | 8aa0848a97f929a57d2b68065c59d81d03375d25 (diff) |
Don't use mod operator in shaders for compatibility
Diffstat (limited to 'res/shaders')
-rw-r--r-- | res/shaders/computemaxsignal.frag | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/shaders/computemaxsignal.frag b/res/shaders/computemaxsignal.frag index a4f327b09b..7417ef8f86 100644 --- a/res/shaders/computemaxsignal.frag +++ b/res/shaders/computemaxsignal.frag @@ -36,7 +36,7 @@ void main(void) discard; int nearestCurrentIndex = int(floor(currentPosition*float(waveformLength)+0.5)); - float currentIndex = float(nearestCurrentIndex) - float(nearestCurrentIndex%(2*visualSamplePerPixel)); + float currentIndex = float(nearestCurrentIndex); float previousIndex = currentIndex - 1.0*float(visualSamplePerPixel); float nextIndex = currentIndex + 1.0*float(visualSamplePerPixel); |