fixed that dumb bug

This commit is contained in:
MitchellHansen
2017-04-04 05:42:22 -07:00
parent f81af35884
commit 79abf8f924
2 changed files with 2 additions and 3 deletions

View File

@@ -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;
}