fixed that dumb bug
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
int pixel_to_index(int2 dimensions, int2 pixel) {
|
int pixel_to_index(int2 dimensions, int2 pixel) {
|
||||||
|
|
||||||
if (pixel.x >= 0 && pixel.x <= dimensions.x &&
|
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;
|
return pixel.y * dimensions.x + pixel.x;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ float elap_time() {
|
|||||||
return static_cast<float>(elapsed_time.count());
|
return static_cast<float>(elapsed_time.count());
|
||||||
}
|
}
|
||||||
|
|
||||||
const int WINDOW_X = 1080;
|
const int WINDOW_X = 1920;
|
||||||
const int WINDOW_Y = 1080;
|
const int WINDOW_Y = 1080;
|
||||||
|
|
||||||
void generate_nodes(sf::Uint8* nodes) {
|
void generate_nodes(sf::Uint8* nodes) {
|
||||||
@@ -46,7 +46,6 @@ int main() {
|
|||||||
|
|
||||||
OpenCL cl;
|
OpenCL cl;
|
||||||
|
|
||||||
|
|
||||||
if (!cl.init())
|
if (!cl.init())
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user