From 79abf8f92407b392945f8f8c3e66ee3d2c72335d Mon Sep 17 00:00:00 2001 From: MitchellHansen Date: Tue, 4 Apr 2017 05:42:22 -0700 Subject: [PATCH] fixed that dumb bug --- kernels/conways.cl | 2 +- src/main.cpp | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/kernels/conways.cl b/kernels/conways.cl index ccb069b..926a1f5 100644 --- a/kernels/conways.cl +++ b/kernels/conways.cl @@ -1,7 +1,7 @@ int pixel_to_index(int2 dimensions, int2 pixel) { if (pixel.x >= 0 && pixel.x <= dimensions.x && - pixel.y >= 0 && pixel.x <= dimensions.y ){ + pixel.y >= 0 && pixel.y <= dimensions.y ){ return pixel.y * dimensions.x + pixel.x; } diff --git a/src/main.cpp b/src/main.cpp index 5a19c63..4cd5f7f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -21,7 +21,7 @@ float elap_time() { return static_cast(elapsed_time.count()); } -const int WINDOW_X = 1080; +const int WINDOW_X = 1920; const int WINDOW_Y = 1080; void generate_nodes(sf::Uint8* nodes) { @@ -46,7 +46,6 @@ int main() { OpenCL cl; - if (!cl.init()) return -1;