Commits

Alex Szpakowski committed 3242694

Improved performance of ImageData:getPixel and ImageData:mapPixel

Comments (0)

Files changed (1)

src/modules/image/ImageData.cpp

 	if (!inside(x, y))
 		throw love::Exception("Attempt to get out-of-range pixel!");
 
-	Lock lock(mutex);
-
 	pixel *pixels = (pixel *)getData();
 	return pixels[y*getWidth()+x];
 }