fixed that dumb bug
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ float elap_time() {
|
||||
return static_cast<float>(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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user