summaryrefslogtreecommitdiff
path: root/AutoVideosLive.cl
diff options
context:
space:
mode:
Diffstat (limited to 'AutoVideosLive.cl')
-rw-r--r--AutoVideosLive.cl4
1 files changed, 2 insertions, 2 deletions
diff --git a/AutoVideosLive.cl b/AutoVideosLive.cl
index ff1301d..299e29d 100644
--- a/AutoVideosLive.cl
+++ b/AutoVideosLive.cl
@@ -4,8 +4,8 @@ __kernel void AutoFrame(__global float *output)
unsigned int id = get_global_id(0);
int width = <WIDTH>;
- int xInt = id % width;
- int yInt = id / width;
+ int xInt = (id/3) % width;
+ int yInt = (id/3) / width;
float t = <FRAMENUMBER>;
float x = (float)xInt;