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;